CN103747029A - File transmission method, device and system - Google Patents

File transmission method, device and system Download PDF

Info

Publication number
CN103747029A
CN103747029A CN201310669935.4A CN201310669935A CN103747029A CN 103747029 A CN103747029 A CN 103747029A CN 201310669935 A CN201310669935 A CN 201310669935A CN 103747029 A CN103747029 A CN 103747029A
Authority
CN
China
Prior art keywords
file
event
parameter
name
document transmission
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310669935.4A
Other languages
Chinese (zh)
Inventor
赵化强
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201310669935.4A priority Critical patent/CN103747029A/en
Publication of CN103747029A publication Critical patent/CN103747029A/en
Priority to PCT/CN2014/093361 priority patent/WO2015085901A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a file transmission device. The file transmission device which resides in a calculation device is suitable for transmitting files in the calculation device to a server. The file transmission device comprises a file monitor which is suitable for monitoring various file changes in the calculation device and generating corresponding file change events, an event processor which is suitable for carrying out processing on the file change events generated by the file monitor based on preset rules, and a communication unit which is suitable for transmitting the one or the plurality of file change events which are processed by the event processor and associated file data to the server. The invention also discloses a corresponding file transmission method and a network storage system.

Description

A kind of document transmission method, equipment and system
Technical field
The present invention relates to computer and internet arena, relate in particular to the data synchronization technology in network.
Background technology
Along with popularizing of internet and computer, people generally can have a plurality of computing equipments in live and work, for example, in work unit, to I haven't seen you for ages, use a computer, and also can use another computer at home, and going out or can use various mobile computing devices as flat board or smart mobile phone etc. during amusement., there is network store system in the file in these computing equipments of unified management.As shown in Figure 1, a typical network store system can comprise the first computing equipment 110, the second computing equipment 120, and storage server 130.The first computing equipment 110 and the second computing equipment 120 communicate via network and storage server 130 respectively.Computing equipment 110 and 120 is the file change situation under local monitor respective directories respectively.For instance, when the first computing equipment 110 detects file in its certain catalogue and changes, will carry out alternately with storage server 130, by the file changing and data upload thereof to storage server 130, and carry out when mutual when the second computing equipment 120 and storage server 130, file and data thereof new storage, that in the first computing equipment 110, change in storage server 130 can be downloaded in the local respective directories of the second computing equipment 120 automatically, thereby realize the synchronous of in each computing terminal associated documents.
But, in local computing device, various application programs can produce a large amount of intermediate file change procedures in the process of implementation, for example, when computing equipment moves the Word Word of Microsoft, in the process that word file is edited, can produce many Temp intermediate files, when preserving word file, also can cause repeatedly file modification event simultaneously.This is the mode that application program is taked in order to guarantee the safety of word file, but for network store system, this can cause the problem of the synchronous poor efficiency of data.This be because, according to existing Network Synchronization memory mechanism, at every turn all can be by revised content delivery to storage server to the modification of file on computing terminal, computing terminal can record complete file change process and reset on storage server, and for stores synchronized system, the fileinfo of paying close attention to is the content after having revised, rather than modification process, therefore this can cause between computing terminal and storage server useless frequent alternately, has reduced the performance of whole network store system.Therefore need a kind of file transmission scenario that can reduce invalid data transmission to improve the efficiency of whole network store system.
Summary of the invention
For this reason, the invention provides a kind of new scheme to try hard to solve or at least alleviate the problem existing above.
According to an aspect of the present invention, a kind of document transmission device is provided, this document transmission equipment resides on computing equipment, be suitable for the file transfer on computing equipment to server, this document transmission equipment comprises: file monitoring device, be suitable for monitoring the various file change in computing equipment, and generate corresponding file change event; Event handler, the file change event that is suitable for according to pre-defined rule, file monitoring device being generated is processed; And communication unit, be suitable for one or more file change event after event handler is processed and the file data being associated to be transferred to together server.
Alternatively, file change event can be divided into establishment event, deletion event, modification event and rename event, the parameter of wherein said establishment event, deletion event and modification event is the filename relating to, and rename event has filename before the rename filename after as the first parameter and rename as the second parameter.
Alternatively, according to document transmission device of the present invention, also comprise synchronizer trigger, be suitable for when being triggered, the file change event that indication event handler has generated file monitoring device since being triggered last time is processed, and indicates communication unit transmission data.
According to another aspect of the present invention, a kind of document transmission method is provided, the method is suitable for the file transfer on computing equipment to arrive server, and this document transmission method comprises step: monitor the various file change in computing equipment, and generate corresponding file change event; According to pre-defined rule, generated file change event is processed; And one or more file change event after treatment and the file data being associated are transferred to server together.
Alternatively, file change event can be divided into establishment event, deletion event, modification event and rename event, the parameter of wherein said establishment event, deletion event and modification event is the filename relating to, and rename event has filename before the rename filename after as the first parameter and rename as the second parameter.
Alternatively, according to document transmission method of the present invention, also comprise triggering step, be suitable for regularly or answer user's request to trigger to carry out the step of described processing file change event, with the file change event having been generated since be triggered last time, process.
According to an aspect in addition of the present invention, a kind of network store system is provided, comprising: server; And a plurality of computing equipments, each computing equipment comprises according to document transmission device of the present invention, so as by the file transfer on computing equipment in server.
According to file transmission scenario of the present invention, by the file transfer of computing equipment to before server, according to pre-defined rule, the file change situation in computing equipment is analyzed, removed some unnecessary intermediate file transmission, thereby improved the efficiency of file transfer.
Accompanying drawing explanation
In order to realize above-mentioned and relevant object; in conjunction with description and accompanying drawing below, some illustrative aspect is described herein; the variety of way that can put into practice principle disclosed herein has been indicated in these aspects, and all aspects and equivalent aspect thereof are intended to fall in the scope of theme required for protection.Read in conjunction with the drawings detailed description below, above-mentioned and other object of the present disclosure, Characteristics and advantages will become more obvious.Spread all over the disclosure, identical Reference numeral is often referred to identical parts or element of generation.
Fig. 1 shows the schematic diagram according to network store system of the present invention;
Fig. 2 shows the schematic diagram of document transmission device according to an embodiment of the invention; And
Fig. 3 shows the schematic diagram of document transmission method according to an embodiment of the invention.
Embodiment
Exemplary embodiment of the present disclosure is described below with reference to accompanying drawings in more detail.Although shown exemplary embodiment of the present disclosure in accompanying drawing, yet should be appreciated that and can realize the disclosure and the embodiment that should do not set forth limits here with various forms.On the contrary, it is in order more thoroughly to understand the disclosure that these embodiment are provided, and can by the scope of the present disclosure complete convey to those skilled in the art.
The present invention can implement in the network store system shown in Fig. 1, and as shown in Figure 1, network store system can comprise the first computing equipment 110, the second computing equipment 120, and storage server 130.The first computing equipment 110 and the second computing equipment 120 communicate via network and storage server 130 respectively.The first and second computing equipments comprise according to document transmission device of the present invention, for the file transfer of computing equipment is carried out to centralized stores in storage server 130.
Fig. 2 shows the schematic diagram of document transmission device according to an embodiment of the invention.As shown in Figure 2, document transmission device 200 is included in any of the first computing equipment 110 shown in Fig. 1 and the second computing equipment 120, for by the file transfer of these computing equipments to server 130 and be stored in wherein.Server 130 can also not have these file transfer in the computing equipment of these files to other subsequently, thereby realizes the synchronous of file.
In the present invention, the first and second computing equipments 110 and 120 can be any equipment that can process electronic data in this area, include but not limited to desktop computer, notebook computer, personal digital assistant, intelligent mobile terminal, panel computer etc.In computing equipment 110 and 120, conventionally move modern operating system, utilize operating system to carry out the hardware resource in Management Calculation equipment.Computing equipment 110 and 120 can move various application in operating system.Document transmission device 200 in the present invention can be used as a kind of application and operation on computing equipment 110 and 120.Certainly the difference that depends on the operating system of moving on computing equipment, the implementation of document transmission device 200 is also different, the present invention is not limited to the various realizations that document transmission device 200 just adopts in order to adapt to different operating system, and be only limited to document transmission device 200 realize function of the present invention and must have realize logic.
As shown in Figure 2, document transmission device 200 comprises file monitoring device 210, event handler 220 and communication unit 230.Various file change in 210 pairs of computing equipments 110 of file monitoring device, monitor such as creating file, deleted file, move and revised file content etc.As mentioned above, when document transmission device 200 is as being applied in while moving in operating system, operating system provides file operation interface conventionally.According to a kind of implementation, file monitoring device 210 can, by add hook (HOOK) on these file operation interfaces, just can be learned the file change in computing equipment 110 exactly.Alternatively; because computing equipment 110 does not wish the All Files on computing equipment to be all synchronized in other computing equipment; therefore computing equipment 110 can specify one or more will carry out the file directory of file synchronization conventionally, and now file monitoring device 210 only monitors these file directorys.
File monitoring device 210, when the variation that monitors file, can generate corresponding file change event, and stores these file change events according to time sequencing.As mentioned above, file monitoring device 210 can be by adding the variation that hook carrys out Monitoring Files on the file operation interface in operating system, therefore file monitoring device 210 can, when file changes, generate the file change event of the details of reflection this document changing content.According to a kind of implementation, each file change event comprises event rise time, type of action and parameter.Type of action comprises establishment, deletion, modification and rename, correspondingly, file change event can be categorized as to establishment event, deletion event, modification event and rename event.For establishment event, deletion event and modification event, the parameter of file change event is related filename; And for rename event, the parameter of file change event comprises that filename after filename before rename is as the first parameter and rename is as the second parameter.
For example, when creating the file of file a.doc by name, can generate an establishment event, its parameter is a.doc.When deleting the file of file b.bak by name, can generate a deletion event, its parameter is b.bak.When a file is revised as to tmp from filename a.doc, can generate a rename event, its first parameter is that a.doc and the second parameter are tmp.
Event handler 220 is couple to file monitoring device 210, and a series of file change events that file monitoring device 210 is generated are processed.A kind of direct mode that file synchronization on computing equipment is copied on server 130 is, these file change events are reset with identical order on server 130, on server 130, re-execute file change process, so just can guarantee intactly file copy to server.Because file monitoring device 210 generates a file change event for each file change operation, if directly reset these events on server, can cause a large amount of file transfer between computing equipment and server.Therefore, before these events are reset on server 130, the file change event according to pre-defined rule, file monitoring device 210 being generated by event handler 220 is processed and is contributed to reduce unnecessary transfer of data between computing equipment and server 130.
Multiple pre-defined rule can be set, and these rules can be considered the final result of a plurality of file operations conventionally.
First pre-defined rule according to the present invention is, if there are a plurality of modification events with identical parameters, to merge into a modification event that parameter is identical.For example when a file having been carried out repeatedly revising on computing equipment (for example repeatedly editing graph file), can produce the event of repeatedly revising, but its final result is the last file of storage, can be therefore a modification event by repeatedly revising event merge.
Second pre-defined rule according to the present invention is, if there is the event of following sequencing: parameter is that establishment event, first parameter of temporary file name is that file destination name and the second parameter are that the event that renames, first parameter of backup file name is that temporary file name and the second parameter are that the event that renames and the parameter of file destination name is the deletion event of backup file name, is that parameter is the modification event of file destination name by these event merges.
Second pre-defined rule is applicable to such situation, while wherein moving the application of various editing files on computing equipment, need to preserve file, in order to ensure the file process of preserving, carry out reliably, conventionally these application can adopt below and process and preserve file destination: the content that first will preserve is written in a temporary file, then file destination is renamed as to backup file, subsequently temporary file is renamed as to file destination, if the execution of these steps is all successful, delete backup file.Because network store system is only just to upload file destination after the reliable preservation of file destination, whole four events that therefore there is no need to reset on server, but the event of upgrading file destination of resetting simply.
The word Word of Microsoft of take is example, when user utilizes this Word for example, to edit word file (a.doc), need in editing process, preserve word file, now Word can carry out following file operation, first certain editor's Chinese version is stored as to a .tmp file, the file that will preserve is subsequently that a.doc file is renamed as a.bak file, subsequently .tmp file is renamed as to a.doc file, after every operation is errorless, delete a.bak file.But for user, be exactly the operation of once storing a.doc, and when needs, associated documents uploaded onto the server when upper, also only need the a.doc after upgrading to be transferred to server, and need not transmit various tmp and bak file.
The 3rd pre-defined rule according to the present invention be, if there is the event of two sequencings below: parameter is that the establishment event of temporary file name and the first parameter are temporary file name and the second parameter is the event that renames of file destination name,
Can be the establishment event that a parameter is file destination name by these two event merges.
The 3rd pre-defined rule is applicable to such example, and for example first user has created a name and be called a.doc, yet finds title input error, by this document name modifications, is b.doc.Now, for file synchronization, final result is to have created a name to be called the file of b.doc, so these two events can be merged.
The 4th pre-defined rule according to the present invention is, if there is the event of two sequencings below: the first parameter is that file destination name and the second parameter are the event that renames of temporary file name, and first parameter be that temporary file name and the second parameter are the event that renames of file destination name, can delete this two events.
The 4th pre-defined rule considered such situation, revised the title of a file user error, but finds to revise mistake, again file name is modified as to former state.Now final result is that any change does not occur file system, therefore can delete this two events.
The 5th pre-defined rule according to the present invention is, if there is the event of following sequencing: the first parameter is that file destination name and the second parameter are that the event that renames of temporary file name, modification event, the parameter that one or more parameter is file destination name are the deletion event of temporary file name, can be the modification event that a parameter is file destination name by these event merges.
The 5th pre-defined rule is applicable to such situation, when needs continue to revise to a file, owing to worrying to make a mistake in this document modification process, first copy the temporary file of a this document, then this document is continued to modify, when file modification success, delete the temporary file originally copying.For synchro system, final result is revised this document exactly, therefore need to carry out event merge processing.
When there is a plurality of pre-defined rule, event handler 220 can sequentially and recycle pre-defined rule and process, until event can not be processed by any pre-defined rule.For example, when event handler 220 can be processed event according to each pre-defined rule first successively, after having carried out first round processing, again according to each pre-defined rule, event is processed successively, until event can not be optimized according to pre-defined rule.After the event being generated by 220 pairs of file monitoring devices of event handler 210 is processed, the communication unit 230 that is couple to event handler 220 is transferred to server 130 together by file change event after treatment and the file data that is associated, to event is reset on server 130, thus by file synchronization to server 130.
As mentioned above, in document transmission device 200, can take the file change event that generates of file monitoring device 210 carry out document transmission processing as basic handling unit.Owing to relating to the operation of file on computing equipment, be operation the most frequently in modern operating system, so file monitoring device 210 can generate a large amount of file change events.Synchronous in order to guarantee the file content between computing equipment and server, need to carry out file transfer with appropriate opportunity, therefore, according to an embodiment of the invention, document transmission device 200 comprises synchronizer trigger 240.Synchronizer trigger 240 is when being triggered, the file change event that since 220 pairs of event handlers of indication were triggered from last time, file monitoring device 210 generates is processed, and the file change event after communication unit 230 is processed according to event handler 220 of simultaneously indicating sends to related data on server 130 and resets so that stores synchronized corresponding document.
The file change course of event that file monitoring device 210 generates will be removed after processing from file monitoring device 210, and file monitoring device 210 continues to monitor associated documents catalogue subsequently, and generates new file change event.When synchronizer trigger 240 is triggered again, can indicate again event handler 220 process file change event and remove processed file change event.By above-mentioned circular treatment, realized file continuing synchronously between computing equipment and server.
According to an execution mode, synchronizer trigger 240 can be timed triggering, for example, every 5 seconds or every 30 seconds, be timed triggering.In addition, synchronizer trigger 240 also can be triggered by user, according to user's operation, triggers.
Document transmission device 200 according to the present invention by the file transfer of computing equipment to before server, according to pre-defined rule, the file change situation in computing equipment is analyzed, remove some unnecessary intermediate file transmission, thereby improved the efficiency of file transfer.
Fig. 3 shows the schematic diagram of document transmission method 300 according to an embodiment of the invention.Document transmission method 300 shown in Fig. 3 is suitable in the computing equipment 110 or 120 in Fig. 1 carrying out, so as by the file synchronization in computing equipment in server 130.According to an embodiment, this document transmission method 300 can be carried out by document transmission device 200 as shown in Figure 2.
Method 300 starts from step S310, in step S310, to the various file change in computing equipment 110, such as creating file, deleted file, move and revised file content etc., monitors.As mentioned above, the operating system in computing equipment provides file operation interface conventionally.According to a kind of implementation, in step S310, can, by add hook (HOOK) on these file operation interfaces, just can learn exactly the file change in computing equipment 110.Alternatively; because computing equipment 110 does not wish the All Files on computing equipment to be all synchronized in other computing equipment; therefore computing equipment 110 can be specified one or more file directory that will carry out file synchronization conventionally, now in step S310, only monitors these file directorys.
When monitoring the variation of file in step S310, can generate corresponding file change event, and store these file change events according to time sequencing.As mentioned above, can, by adding the variation that hook carrys out Monitoring Files on the file operation interface in operating system, therefore, in step S310, can, when file changes, generate the file change event of the details of reflection this document changing content.According to a kind of implementation, each file change event comprises event rise time, type of action and parameter.Type of action comprises establishment, deletion, modification and rename, correspondingly, file change event can be categorized as to establishment event, deletion event, modification event and rename event.For establishment event, deletion event and modification event, the parameter of file change event is related filename; And for rename event, the parameter of file change event comprises that filename after filename before rename is as the first parameter and rename is as the second parameter.
For example, when creating the file of file a.doc by name, can generate an establishment event, its parameter is a.doc.When deleting the file of file b.bak by name, can generate a deletion event, its parameter is b.bak.When a file is revised as to tmp from filename a.doc, can generate a rename event, its first parameter is that a.doc and the second parameter are tmp.Generate a series of file change events in step S310 after, in step S320, these file change events are processed.A kind of direct mode that file synchronization on computing equipment is copied on server 130 is, these file change events are reset with identical order on server 130, on server 130, re-execute file change process, so just can guarantee intactly file copy to server.Due in step S310, for each file change operation, generate a file change event, if directly reset these events on server, can cause a large amount of file transfer between computing equipment and server.Therefore, before these events are reset on server 130, in step S320, file change event file monitoring device 210 being generated according to pre-defined rule is processed and is contributed to reduce unnecessary transfer of data between computing equipment and server 130.
Multiple pre-defined rule can be set, and these rules can be considered the final result of a plurality of file operations conventionally.
First pre-defined rule according to the present invention is, if there are a plurality of modification events with identical parameters, to merge into a modification event that parameter is identical.For example when a file having been carried out repeatedly revising on computing equipment (for example repeatedly editing graph file), can produce the event of repeatedly revising, but its final result is the last file of storage, can be therefore a modification event by repeatedly revising event merge.
Second pre-defined rule according to the present invention is, if there is the event of following sequencing: parameter is that establishment event, first parameter of temporary file name is that file destination name and the second parameter are that the event that renames, first parameter of backup file name is that temporary file name and the second parameter are that the event that renames and the parameter of file destination name is the deletion event of backup file name, is that parameter is the modification event of file destination name by these event merges.
Second pre-defined rule is applicable to such situation, while wherein moving the application of various editing files on computing equipment, need to preserve file, in order to ensure the file process of preserving, carry out reliably, conventionally these application can adopt below and process and preserve file destination: the content that first will preserve is written in a temporary file, then file destination is renamed as to backup file, subsequently temporary file is renamed as to file destination, if the execution of these steps is all successful, delete backup file.Because network store system is only just to upload file destination after the reliable preservation of file destination, whole four events that therefore there is no need to reset on server, but the event of upgrading file destination of resetting simply.
The word Word of Microsoft of take is example, when user utilizes this Word for example, to edit word file (a.doc), need in editing process, preserve word file, now Word can carry out following file operation, first certain editor's Chinese version is stored as to a .tmp file, the file that will preserve is subsequently that a.doc file is renamed as a.bak file, subsequently .tmp file is renamed as to a.doc file, after every operation is errorless, delete a.bak file.But for user, be exactly the operation of once storing a.doc, and when needs, associated documents uploaded onto the server when upper, also only need the a.doc after upgrading to be transferred to server, and need not transmit various tmp and bak file.
The 3rd pre-defined rule according to the present invention is, if there is the event of two sequencings below: parameter is that the establishment event of temporary file name and the first parameter are temporary file name and the second parameter is the event that renames of file destination name, can be the establishment event that a parameter is file destination name by these two event merges.
The 3rd pre-defined rule is applicable to such example, and for example first user has created a name and be called a.doc, yet finds title input error, by this document name modifications, is b.doc.Now, for file synchronization, final result is to have created a name to be called the file of b.doc, so these two events can be merged.
The 4th pre-defined rule according to the present invention is, if there is the event of two sequencings below: the first parameter is that file destination name and the second parameter are the event that renames of temporary file name, and first parameter be that temporary file name and the second parameter are the event that renames of file destination name, can delete this two events.
The 4th pre-defined rule considered such situation, revised the title of a file user error, but finds to revise mistake, again file name is modified as to former state.Now final result is that any change does not occur file system, therefore can delete this two events.
The 5th pre-defined rule according to the present invention is, if there is the event of following sequencing: the first parameter is that file destination name and the second parameter are that the event that renames of temporary file name, modification event, the parameter that one or more parameter is file destination name are the deletion event of temporary file name, can be the modification event that a parameter is file destination name by these event merges.
The 5th pre-defined rule is applicable to such situation, when needs continue to revise to a file, owing to worrying to make a mistake in this document modification process, first copy the temporary file of a this document, then this document is continued to modify, when file modification success, delete the temporary file originally copying.For synchro system, final result is revised this document exactly, therefore need to carry out event merge processing.
When there is a plurality of pre-defined rule, in step S320, can sequentially and recycle pre-defined rule and process, until event can not be processed by any pre-defined rule.For example, in step S320, can according to each pre-defined rule, to event, process first successively, after having carried out first round processing, again according to each pre-defined rule, event is processed successively, until event can not be optimized according to pre-defined rule.After step S320 processes generated event, in step S330, file change event after treatment and the file data that is associated are transferred to server 130 together, to event is reset on server 130, thus by file synchronization to server 130.
Owing to relating to the operation of file on computing equipment, be operation the most frequently in modern operating system, therefore in step S310, can generate a large amount of file change events.Synchronous in order to guarantee the file content between computing equipment and server, need to carry out file transfer with appropriate opportunity, therefore, according to an embodiment of the invention, method 300 also comprises triggering step.This step can indicate computing equipment to carry out above-mentioned steps S320 and S330 when carrying out, to the file change event having generated step S310 since being triggered from last time is processed.
Utilize to trigger step and trigger execution step S320 and S330 to process file change event and to remove processed file change event, and step S310 continues to generate new, pending file change event.By such circular treatment, realized file continuing synchronously between computing equipment and server.
According to an execution mode, trigger step and can be timed triggering, for example every 5 seconds or every 30 seconds, be timed triggering.In addition, trigger step and also can be triggered by user, according to user's operation, trigger.
Document transmission method 300 according to the present invention by the file transfer of computing equipment to before server, according to pre-defined rule, the file change situation in computing equipment is analyzed, remove some unnecessary intermediate file transmission, thereby improved the efficiency of file transfer.
In the specification that provided herein, a large amount of details have been described.Yet, can understand, embodiments of the invention can not put into practice in the situation that there is no these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand one or more in each inventive aspect, in the above in the description of exemplary embodiment of the present invention, each feature of the present invention is grouped together into single embodiment, figure or sometimes in its description.Yet, the method for the disclosure should be construed to the following intention of reflection: the present invention for required protection requires than the more features of the feature of clearly recording in each claim.Or rather, as reflected in claims below, inventive aspect is to be less than all features of disclosed single embodiment above.Therefore, claims of following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are to be understood that the module of the equipment in example disclosed herein or unit or assembly can be arranged in as in the equipment described in this embodiment, or alternatively can be positioned in one or more equipment different from equipment in this example.Module in aforementioned exemplary can be combined as a module or can be divided into a plurality of submodules in addition.
Those skilled in the art are appreciated that and can the module in the equipment in embodiment are adaptively changed and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and can put them into a plurality of submodules or subelement or sub-component in addition.At least some in such feature and/or process or unit are mutually repelling, and can adopt any combination to combine all processes or the unit of disclosed all features in this specification (comprising claim, summary and the accompanying drawing followed) and disclosed any method like this or equipment.Unless clearly statement in addition, in this specification (comprising claim, summary and the accompanying drawing followed) disclosed each feature can be by providing identical, be equal to or the alternative features of similar object replaces.
In addition, those skilled in the art can understand, although embodiment more described herein comprise some feature rather than further feature included in other embodiment, the combination of the feature of different embodiment means within scope of the present invention and forms different embodiment.For example, in the following claims, the one of any of embodiment required for protection can be used with compound mode arbitrarily.
In addition, at this, be described as can be by the processor of computer system or the method for being implemented by other device of carrying out described function or the combination of method element for some in described embodiment.Therefore, there is the device that is formed for implementing the method or method element for implementing the processor of the necessary instruction of described method or method element.In addition, the element described herein of device embodiment is the example as lower device: this device is used for implementing by order to implement the performed function of element of the object of this invention.
As used in this, unless made separate stipulations, use ordinal number " first ", " second ", " 3rd " etc. to describe the different instances that common object only represents to relate to similar object, and be not intended that object that hint is described like this must have on upper, space of time, sequence aspect or with any alternate manner to definite sequence.
Although described the present invention according to the embodiment of limited quantity, benefit from description above, those skilled in the art understand, in the scope of the present invention of describing thus, it is contemplated that other embodiment.In addition, it should be noted that the language using in this specification is mainly for object readable and instruction is selected, rather than select in order to explain or to limit theme of the present invention.Therefore,, in the situation that do not depart from the scope and spirit of appended claims, many modifications and changes are all apparent for those skilled in the art.For scope of the present invention, disclosing that the present invention is done is illustrative, and nonrestrictive, scope of the present invention is limited by appended claims.
The invention discloses A1, a kind of document transmission device, this document transmission equipment resides on computing equipment, is suitable for the file transfer on computing equipment to arrive server, and this document transmission equipment comprises:
File monitoring device, is suitable for monitoring the various file change in computing equipment, and generates corresponding file change event;
Event handler, the file change event that is suitable for according to pre-defined rule, described file monitoring device being generated is processed; And
Communication unit, is suitable for one or more file change event after described event handler is processed and the file data being associated to be transferred to together server.
A2, the document transmission device as described in A1, also comprise synchronizer trigger, is suitable for when being triggered, and the file change event that indication event handler has generated file monitoring device since being triggered last time is processed, and indicate communication unit transmission data.
A3, the document transmission device as described in A1 or A2, wherein file change event can be divided into establishment event, deletion event, modification event and rename event, the parameter of wherein said establishment event, deletion event and modification event is the filename relating to, and rename event has filename before the rename filename after as the first parameter and rename as the second parameter.
A4, the document transmission device as described in A3, wherein said pre-defined rule comprises: if there is the event of following sequencing: parameter is that establishment event, first parameter of temporary file name is that file destination name and the second parameter are that the event that renames, first parameter of backup file name is that temporary file name and the second parameter are that the event that renames and the parameter of file destination name is the deletion event of backup file name, by these event merges, is that parameter is the modification event of file destination name.
A5, the document transmission device as described in A3, wherein said pre-defined rule comprises: if there is the event of two sequencings below: parameter is that the establishment event of temporary file name and the first parameter are temporary file name and the second parameter is the event that renames of file destination name, can be the establishment event that a parameter is file destination name by these two event merges.
A6, the document transmission device as described in A3, wherein said pre-defined rule comprises: if there is the event of two sequencings below: the first parameter is that file destination name and the second parameter are the event that renames of temporary file name, and first parameter be that temporary file name and the second parameter are the event that renames of file destination name, can delete this two events.
A7, the document transmission device as described in A3, wherein said pre-defined rule comprises: if there is the event of following sequencing: the first parameter is that file destination name and the second parameter are that the event that renames of temporary file name, modification event, the parameter that one or more parameter is file destination name are the deletion event of temporary file name, can be the modification event that a parameter is file destination name by these event merges.
A8, as the document transmission device as described in any in A1-A7, wherein said synchronizer trigger is regularly triggered or answers user's request and trigger.
A9, as the document transmission device as described in any in A1-A8, wherein said file monitoring device is suitable for the predetermined file catalogue on computing equipment to monitor.
The invention also discloses B1, a kind of document transmission method, the method is suitable for the file transfer on computing equipment to arrive server, and this document transmission method comprises step:
The various file change of supervision in computing equipment, and generate corresponding file change event;
According to pre-defined rule, generated file change event is processed; And
One or more file change event after treatment and the file data being associated are transferred to server together.
B2, the document transmission method as described in claim B1, also comprise triggering step, is suitable for regularly or answers user's request to trigger to carry out the step of described processing file change event, with the file change event having been generated since be triggered last time, processes.
B3, the document transmission method as described in claim B1 or B2, wherein file change event can be divided into establishment event, deletion event, modification event and rename event, the parameter of wherein said establishment event, deletion event and modification event is the filename relating to, and rename event has filename before the rename filename after as the first parameter and rename as the second parameter.
B4, the document transmission method as described in claim B3, wherein said pre-defined rule comprises: if there is the event of following sequencing: parameter is that establishment event, first parameter of temporary file name is that file destination name and the second parameter are that the event that renames, first parameter of backup file name is that temporary file name and the second parameter are that the event that renames and the parameter of file destination name is the deletion event of backup file name, by these event merges, is that parameter is the modification event of file destination name.
B5, the document transmission method as described in claim B3, wherein said pre-defined rule comprises: if there is the event of two sequencings below: parameter is that the establishment event of temporary file name and the first parameter are temporary file name and the second parameter is the event that renames of file destination name, can be the establishment event that a parameter is file destination name by these two event merges.
B6, the document transmission method as described in claim B3, wherein said pre-defined rule comprises: if there is the event of two sequencings below: the first parameter is that file destination name and the second parameter are the event that renames of temporary file name, and first parameter be that temporary file name and the second parameter are the event that renames of file destination name, can delete this two events.
B7, the document transmission method as described in claim B3, wherein said pre-defined rule comprises: if there is the event of following sequencing: the first parameter is that file destination name and the second parameter are that the event that renames of temporary file name, modification event, the parameter that one or more parameter is file destination name are the deletion event of temporary file name, can be the modification event that a parameter is file destination name by these event merges.
B8, as the document transmission method as described in any in claim B1 mono-B7, the step of the various file change of wherein said supervision in computing equipment comprises the various file change in the predetermined file catalogue monitoring on described computing equipment.
The invention also discloses C1, a kind of network store system, comprising:
Server; And
A plurality of computing equipments, each computing equipment comprises as the document transmission device as described in any in claim A1-A9 so that by the file transfer on computing equipment in described server.

Claims (10)

1. a document transmission device, this document transmission equipment resides on computing equipment, is suitable for the file transfer on computing equipment to server, and this document transmission equipment comprises:
File monitoring device, is suitable for monitoring the various file change in computing equipment, and generates corresponding file change event;
Event handler, the file change event that is suitable for according to pre-defined rule, described file monitoring device being generated is processed; And
Communication unit, is suitable for one or more file change event after described event handler is processed and the file data being associated to be transferred to together server.
2. document transmission device as claimed in claim 1, also comprises synchronizer trigger, is suitable for when being triggered, and the file change event that indication event handler has generated file monitoring device since being triggered last time is processed, and indicates communication unit transmission data.
3. the document transmission device as described in claim 1 or 2, wherein file change event can be divided into establishment event, deletion event, modification event and rename event, the parameter of wherein said establishment event, deletion event and modification event is the filename relating to, and rename event has filename before the rename filename after as the first parameter and rename as the second parameter.
4. document transmission device as claimed in claim 3, wherein said pre-defined rule comprises: if there is the event of following sequencing: parameter is that establishment event, first parameter of temporary file name is that file destination name and the second parameter are that the event that renames, first parameter of backup file name is that temporary file name and the second parameter are that the event that renames and the parameter of file destination name is the deletion event of backup file name, by these event merges, is that parameter is the modification event of file destination name.
5. document transmission device as claimed in claim 3, wherein said pre-defined rule comprises: if there is the event of two sequencings below: parameter is that the establishment event of temporary file name and the first parameter are temporary file name and the second parameter is the event that renames of file destination name, can be the establishment event that a parameter is file destination name by these two event merges.
6. document transmission device as claimed in claim 3, wherein said pre-defined rule comprises: if there is the event of two sequencings below: the first parameter is that file destination name and the second parameter are the event that renames of temporary file name, and first parameter be that temporary file name and the second parameter are the event that renames of file destination name, can delete this two events.
7. document transmission device as claimed in claim 3, wherein said pre-defined rule comprises: if there is the event of following sequencing: the first parameter is that file destination name and the second parameter are that the event that renames of temporary file name, modification event, the parameter that one or more parameter is file destination name are the deletion event of temporary file name, can be the modification event that a parameter is file destination name by these event merges.
8. a document transmission method, the method is suitable for the file transfer on computing equipment to server, and this document transmission method comprises step:
The various file change of supervision in computing equipment, and generate corresponding file change event;
According to pre-defined rule, generated file change event is processed; And
One or more file change event after treatment and the file data being associated are transferred to server together.
9. document transmission method as claimed in claim 8, also comprises triggering step, is suitable for regularly or answers user's request to trigger to carry out the step of described processing file change event, with the file change event having been generated since be triggered last time, processes.
10. a network store system, comprising:
Server; And
A plurality of computing equipments, each computing equipment comprises as the document transmission device as described in any in claim 1-7 so that by the file transfer on computing equipment in described server.
CN201310669935.4A 2013-12-10 2013-12-10 File transmission method, device and system Pending CN103747029A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310669935.4A CN103747029A (en) 2013-12-10 2013-12-10 File transmission method, device and system
PCT/CN2014/093361 WO2015085901A1 (en) 2013-12-10 2014-12-09 File transmission method and device, and related system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310669935.4A CN103747029A (en) 2013-12-10 2013-12-10 File transmission method, device and system

Publications (1)

Publication Number Publication Date
CN103747029A true CN103747029A (en) 2014-04-23

Family

ID=50504016

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310669935.4A Pending CN103747029A (en) 2013-12-10 2013-12-10 File transmission method, device and system

Country Status (2)

Country Link
CN (1) CN103747029A (en)
WO (1) WO2015085901A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015085901A1 (en) * 2013-12-10 2015-06-18 北京奇虎科技有限公司 File transmission method and device, and related system
CN106155750A (en) * 2016-07-29 2016-11-23 腾讯科技(深圳)有限公司 The loading method of a kind of resource file and device
CN106371880A (en) * 2016-09-06 2017-02-01 珠海金山网络游戏科技有限公司 Resource hot-loading rapid iteration game making system and method
CN106899655A (en) * 2015-12-18 2017-06-27 埃森哲环球解决方案有限公司 The state of file transmission is tracked using the feedback file corresponding to file transmission events
CN110417860A (en) * 2019-06-21 2019-11-05 深圳壹账通智能科技有限公司 File transfer management method, apparatus, equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030097382A1 (en) * 2001-11-16 2003-05-22 Simbit Corporation Identifying changed records in a file stored on an electronic token
CN101281543A (en) * 2008-05-13 2008-10-08 华为技术有限公司 File synchronisation method and device
CN101763421A (en) * 2009-12-24 2010-06-30 山东中创软件商用中间件股份有限公司 File synchronization method and device
CN102946411A (en) * 2012-10-15 2013-02-27 北京奇虎科技有限公司 Network synchronization system
CN102946410A (en) * 2012-10-15 2013-02-27 北京奇虎科技有限公司 Method and device for network synchronization

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103747029A (en) * 2013-12-10 2014-04-23 北京奇虎科技有限公司 File transmission method, device and system

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030097382A1 (en) * 2001-11-16 2003-05-22 Simbit Corporation Identifying changed records in a file stored on an electronic token
CN101281543A (en) * 2008-05-13 2008-10-08 华为技术有限公司 File synchronisation method and device
CN101763421A (en) * 2009-12-24 2010-06-30 山东中创软件商用中间件股份有限公司 File synchronization method and device
CN102946411A (en) * 2012-10-15 2013-02-27 北京奇虎科技有限公司 Network synchronization system
CN102946410A (en) * 2012-10-15 2013-02-27 北京奇虎科技有限公司 Method and device for network synchronization

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015085901A1 (en) * 2013-12-10 2015-06-18 北京奇虎科技有限公司 File transmission method and device, and related system
CN106899655A (en) * 2015-12-18 2017-06-27 埃森哲环球解决方案有限公司 The state of file transmission is tracked using the feedback file corresponding to file transmission events
CN106899655B (en) * 2015-12-18 2020-06-30 埃森哲环球解决方案有限公司 Method and equipment for processing file
CN106155750A (en) * 2016-07-29 2016-11-23 腾讯科技(深圳)有限公司 The loading method of a kind of resource file and device
CN106155750B (en) * 2016-07-29 2018-09-07 腾讯科技(深圳)有限公司 A kind of loading method and device of resource file
CN106371880A (en) * 2016-09-06 2017-02-01 珠海金山网络游戏科技有限公司 Resource hot-loading rapid iteration game making system and method
CN106371880B (en) * 2016-09-06 2019-10-11 珠海金山网络游戏科技有限公司 A kind of system and method for resource heat load iteratively faster game making
CN110417860A (en) * 2019-06-21 2019-11-05 深圳壹账通智能科技有限公司 File transfer management method, apparatus, equipment and storage medium

Also Published As

Publication number Publication date
WO2015085901A1 (en) 2015-06-18

Similar Documents

Publication Publication Date Title
CN111465930B (en) Method, system and computer readable medium for violation resolution in client synchronization
Moss Nested transactions: An approach to reliable distributed computing
US20150347552A1 (en) Synchronization system for multiple client devices
CN103747029A (en) File transmission method, device and system
CN111324610A (en) Data synchronization method and device
CN107229649B (en) Data update system and method
CN103780676A (en) File transmission method, device and system
US20190361793A1 (en) System for debugging a client synchronization service
CN113515303B (en) Project transformation method, device and equipment
CN110413588A (en) Distributed objects storage method, device, computer equipment and storage medium
WO2015150884A2 (en) Method and system for synchronizing files between a first electronic device and a second electronic device
US10127270B1 (en) Transaction processing using a key-value store
CN102932476A (en) Network storage synchronization system
CN103559204A (en) Database operation request processing method, unit and system
CN108153799B (en) Database access control method and device and database system
Meiklejohn Riak PG: Distributed process groups on dynamo-style distributed storage
CN112783436A (en) Synchronized object placement for information lifecycle management
US10795875B2 (en) Data storing method using multi-version based data structure
Baxter Mastering Akka
CN103617166A (en) Mirror image method for metadata
Brown The SAS® Scalable Performance Data Engine: moving your data to Hadoop without giving up the SAS features you depend on

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20140423

RJ01 Rejection of invention patent application after publication