Content of the invention
The purpose of the embodiment of the present invention is to provide a kind of method of file synchronization, device, client, server end and sets
Standby, by statistics file name containing primary word number, obtain file to be synchronized weight, with vital document is entered row major with
Step, thus improving whole work efficiency, reduces the loss risk of vital document.
Embodiments provide a kind of method of file synchronization, described inclusion:
Obtain listed files to be synchronized, described list to be synchronized includes file to be synchronized;
Count and preserve the important word information included in each file name to be synchronized;
File to be synchronized in described listed files to be synchronized is identified according to statistical information, obtains the first identification information, institute
Stating the first identification information is the weighted value representing each file significance level to be synchronized;
According to described first identification information, each file to be synchronized in described list to be synchronized is ranked up, obtains each
The transmission sequence of individual file to be synchronized;
According to the transmission sequence of each file to be synchronized in described list to be synchronized, execute file synchronization operation.
Wherein, it is previously stored with keywords database in server end, in described keywords database, preserve the name of each primary word
Claim, the corresponding important word parameter P of each primary word titlea, and first weight W corresponding with each primary word titlea';Described
First weight Wa' for server end to the filename word segmentation processing of All Files after, count the number of times of each participle, according to weight
Allocation strategy obtains the weight that this participle occurs relative to All Files name.
Wherein, the described step counting and preserving the important word information included in each file name to be synchronized includes:
Word segmentation processing is carried out by client to described file name to be synchronized, obtains some words, each participle is as one
Primary word;
Client sends primary word information inquiring request, obtains each primary word from the response receiving
The first corresponding weight Wa';The first weight W corresponding to each primary word describeda' as in each file name to be synchronized
The important word information being comprised;
Included according to the step that statistical information identifies the file to be synchronized in described listed files to be synchronized:
The first weight W described in client applicationa' identify described listed files to be synchronized in file to be synchronized;
The weighted value P of each file significance level to be synchronized represented by described first identification information is:
Wherein, Wa=Wa',
Wherein, PaFor certain important word parameter, W in keywords databaseaFor this important word parameter PaThe power of relatively all primary words
Weight, a is primary word number in file name to be synchronized.
Wherein, also include in described keywords database:Second weight W corresponding with each primary word titlea' ', described second
Weight Wa' ' treat the filename word segmentation processing of synchronous documents for client server after, count the appearance of each participle time
Number, obtains, according to weight allocation strategy, the weight that this participle occurs relative to All Files name;
The first weight W when different files to be synchronizeda' identical when, according to statistical information mark described file to be synchronized row
The step of the file to be synchronized in table includes:
The first weight W described in client applicationa' and the second weight Wa' ' identify treating in described listed files to be synchronized
Synchronous documents;
The weighted value P of each file significance level to be synchronized represented by described first identification information is:
Wherein, Wa=Wa'+Wa' ',
Wherein, PaFor certain important word parameter, W in keywords databaseaFor this important word parameter PaThe power of relatively all primary words
Weight, a is primary word number in file name to be synchronized.
Wherein, the described step counting and preserving the important word information included in each file name to be synchronized includes:
File name to be synchronized is obtained from each client by server end;
Described file name to be synchronized is carried out with word segmentation processing, obtains some words, each participle is as a primary word;
Some words after described participle are saved in keywords database as primary word, thus obtaining each file to be synchronized
Important word information included in title;
Wherein, preserve the title of each primary word in this keywords database described, each primary word title is corresponding important
Word parameter Pa, and first weight W corresponding with each primary word titlea'.
Wherein, the described step identifying the file to be synchronized in described listed files to be synchronized according to statistical information includes:
Described first weight W is applied by server enda' identify described listed files to be synchronized in file to be synchronized;
The weighted value P of each file significance level to be synchronized represented by described first identification information is:
Wherein, Wa=Wa',
Wherein, PaFor certain important word parameter, W in keywords databaseaFor this important word parameter PaThe power of relatively all primary words
Weight, a is primary word number in file name to be synchronized.
Wherein, included by the step that server end obtains file name to be synchronized from each client:
The file name to be synchronized of each client is obtained from list to be synchronized;Or,
From the file to be synchronized obtaining each client from the file name message to be synchronized of each client push
Title;Or,
Send, to each client, the request obtaining title to be synchronized, obtain each client from the response of each client
The file name to be synchronized at end.
Wherein, after the described important word information counting included in each file name to be synchronized, methods described also includes:
Count and preserve the peration data that described file to be synchronized is operated;
Identify the file to be synchronized in described listed files to be synchronized according to statistical information to include:Believed according to described primary word
Breath and described peration data identify the file to be synchronized in described listed files to be synchronized.
Wherein, the weighted value P of each file significance level to be synchronized represented by described first identification information is
Wherein, PPrimary wordPrimary word information parameter included in file name to be synchronized, WPrimary wordRepresent important word information
Parameter is relative to the weight of the type parameter of certain peration data;PxRepresent the type parameter of certain peration data, WxRepresent this operation
Data type parameters PxThe weight of relative all operations data type, x represents the number of type.
Wherein, described operation data type at least includes one of or combination in any:Compiled in predetermined amount of time
Collect the frequency, multiple person cooperational processing information, browse fileinfo, file amount of change information, the number information that is opened, file genus
Property information, active degree information, cumulative edit duration information.
The embodiment of the present invention additionally provides a kind of device of file synchronization, and described device includes:
List acquiring unit, for obtaining listed files to be synchronized, described list to be synchronized includes file to be synchronized;
Statistic unit, for counting and preserving the important word information included in each file name to be synchronized;
Mark unit, for identifying the file to be synchronized in described listed files to be synchronized according to statistical information, obtains the
One identification information, described first identification information is the weighted value representing each file significance level to be synchronized;
Sequencing unit, for according to described first identification information, entering to each file to be synchronized in described list to be synchronized
Row sequence, obtains the transmission sequence of each file to be synchronized;
Lock unit, for the transmission sequence according to each file to be synchronized in described list to be synchronized, executes file same
Step operation.
The embodiment of the present invention additionally provides a kind of server end, including:
List obtaining unit, for obtaining listed files to be synchronized, described list to be synchronized includes file to be synchronized;
First statistic unit, for counting and preserving the important word information included in each file name to be synchronized;
Mark unit, for identifying the file to be synchronized in described listed files to be synchronized according to statistical information, obtains the
One identification information, described first identification information is the weighted value representing each file significance level to be synchronized;
Lock unit, for the transmission sequence according to each file to be synchronized in described list to be synchronized, executes file same
Step operation.
Wherein, described server end also includes:
Sequencing unit, for according to described first identification information, entering to each file to be synchronized in described list to be synchronized
Row sequence, obtains ranking results, so that described lock unit executes file synchronization operation according to ranking results.
Wherein, described server end also includes:
Memory element, is used for being previously stored with keywords database, preserves the title of each primary word in described keywords database,
The corresponding important word parameter P of each primary word titlea, and first weight W corresponding with each primary word titlea';Described
One weight Wa' for server end to the filename word segmentation processing of All Files after, count the number of times of each participle, divided according to weight
Join strategy and obtain the weight that this participle occurs relative to All Files name;
Described first identification information is that the weighted value representing each file significance level to be synchronized is:
Wherein, Wa=Wa',
Wherein, PaFor certain important word parameter, W in keywords databaseaFor this important word parameter PaThe power of relatively all primary words
Weight, a is primary word number in file name to be synchronized.
Wherein, described server end also includes:
Memory element, is used for being previously stored with keywords database, preserves the title of each primary word in described keywords database,
The corresponding important word parameter P of each primary word titlea, and first weight W corresponding with each primary word titlea' and with every
Corresponding second weight W of individual primary word titlea'';Described first weight Wa' it is the filename participle to All Files for the server end
After process, count the number of times of each participle, the weight that this participle occurs relative to All Files name is obtained according to weight allocation strategy;
Described second weight Wa' ' treat the filename word segmentation processing of synchronous documents for client server after, count each participle
The number of times occurring, obtains, according to weight allocation strategy, the weight that this participle occurs relative to All Files name;
The weighted value P of each file significance level to be synchronized represented by described first identification information is:
Wherein, Wa=Wa'+Wa' ',
Wherein, PaFor certain important word parameter, W in keywords databaseaFor this important word parameter PaThe power of relatively all primary words
Weight, a is primary word number in file name to be synchronized.
Wherein, described server end also includes:
Second statistic unit, for counting and preserving the peration data that described file to be synchronized is operated;
Described mark unit, is additionally operable to identify treating in described listed files to be synchronized according to statistical information and peration data
Synchronous documents.
Wherein, the weighted value P of each file significance level to be synchronized represented by described first identification information is
Wherein, PPrimary wordPrimary word information parameter included in file name to be synchronized, WPrimary wordRepresent important word information
Parameter is relative to the weight of the type parameter of certain peration data;PxRepresent the type parameter of certain peration data, WxRepresent this operation
Data type parameters PxThe weight of relative all operations data type, x represents the number of type.
Wherein, described operation data type at least includes one of or combination in any:Compiled in predetermined amount of time
Collect the frequency, multiple person cooperational processing information, browse fileinfo, file amount of change information, the number information that is opened, file genus
Property information, active degree information, cumulative edit duration information.
The embodiment of the present invention additionally provides a kind of server apparatus, is provided with foregoing server end.
The embodiment of the present invention additionally provides a kind of client, and described client includes:
List obtaining unit, for obtaining listed files to be synchronized, described list to be synchronized includes file to be synchronized;
Mark unit, for be synchronized described in the primary word message identification according to included in each file name to be synchronized
File to be synchronized in listed files, obtains the first identification information, described first identification information is to represent each file weight to be synchronized
Want the weighted value of degree;
Transmission sequence obtaining unit, for obtaining the transmission sequence of each file to be synchronized;
Lock unit, for the transmission sequence according to each file to be synchronized in described list to be synchronized, executes file same
Step operation.
Wherein, described client also includes:
First statistic unit, for counting and preserving the important word information included in each file name to be synchronized.
Wherein, described first identification information is that the weighted value representing each file significance level to be synchronized is:
Wherein,
Wherein, PaFor certain important word parameter, W in keywords databaseaFor this important word parameter PaThe power of relatively all primary words
Weight, a is primary word number in file name to be synchronized.
Wherein, described client also includes:
Sequencing unit, for according to described first identification information, entering to each file to be synchronized in described list to be synchronized
Row sequence, obtains ranking results, so that transmission sequence obtaining unit obtains the transmission sequence of each file to be synchronized.
Wherein, described client also includes:
Second statistic unit, for counting and preserving the peration data that described file to be synchronized is operated;
Described mark unit, is additionally operable to identify treating in described listed files to be synchronized according to statistical information and peration data
Synchronous documents;
Wherein, the weighted value P of each file significance level to be synchronized represented by described first identification information is
Wherein, PPrimary wordPrimary word information parameter included in file name to be synchronized, WPrimary wordRepresent important word information
Parameter is relative to the weight of the type parameter of certain peration data;PxRepresent the type parameter of certain peration data, WxRepresent this operation
Data type parameters PxThe weight of relative all operations data type, x represents the number of type.
Wherein, described operation data type at least includes one of or combination in any:Compiled in predetermined amount of time
Collect the frequency, multiple person cooperational processing information, browse fileinfo, file amount of change information, the number information that is opened, file genus
Property information, active degree information, cumulative edit duration information.
The embodiment of the present invention additionally provides a kind of terminal unit, is provided with foregoing client.
As seen from the above technical solutions, application the embodiment of the present invention provided synchronous method, device, client, clothes
Business device end and equipment, after according to file generated to be synchronized list to be synchronized, included in each file name to be synchronized
Important word information, the transmission sequence of each file to be synchronized in list to be synchronized can be adjusted, so that comprising
The vital document of primary word can both have been improve whole work efficiency by priority synchronization, reduce the loss wind of vital document again
Danger.
It is additionally, since and can timely adjust the order of file it is ensured that vital document is by priority synchronization, further increase
Whole work efficiency, reduces the loss risk of vital document.
Further, can continue to not synchronous file according to the list to be synchronized of record after connection again of breaking in a network
Continuous execution simultaneously operating, decreases the number of times of inter-net communication, reduces network load, save Internet resources further, improve whole
Body synchronous efficiency.
Certainly, implement arbitrary product of the present invention or method it is not absolutely required to reach simultaneously all the above excellent
Point.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation description is it is clear that described embodiment is only a part of embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of not making creative work
Embodiment, broadly falls into the scope of protection of the invention.
Referring to Fig. 1, it is a kind of schematic flow sheet of file synchronization according to embodiments of the present invention, and the present embodiment was both permissible
It is applied to client it is also possible to be applied to server end, specifically include:
Step 101, obtains listed files to be synchronized, comprises file to be synchronized in described list to be synchronized.
Here, file to be synchronized is derived from the All Files under assigned catalogue, the such as file under fast disk client controls
The file of middle form of ownership and file.For current device(The such as hardware device such as PC, mobile device)For, when this refers to
Determine the file under catalogue occur in interior perhaps structure any change after, the file after this variation can be transferred to another equipment,
File after being changed with guarantee data under the assigned catalogue on all devices that this user is used is consistent completely, that is, refer to
Determine file under catalogue and be in synchronous regime, be consistent at any time.
Specifically, user is in current device(Assume that this equipment is provided with client)The file content being done and file structure
Modification, transmit upstream to server, and then downlink transfer be to the other equipment of user(This equipment is provided with client);Or will
User is in other equipment(This equipment is provided with client)The uplink done is to the file content of server and file
The modification of structure, downlink transfer to current device, the transmission of this up-downgoing is to ensure that this user in all devices (client
End) all modifications to any file content and file structure that done are all in synchronous regime.
As an embodiment, if certain current device is fitted without client, but some way and clothes can be passed through
Business device end keeps communication connection status, and such as two-dimensional code scanning mode is set up and connected it is also possible to realize technique scheme temporarily.
For example, by the interface of operating system, client determines that user enters destination folder(As stored literary composition in Dropbox
The file of part, the file under that is, client controls), and changed the information in this destination folder;For example, Yong Hu
Dropbox control under file in, certain file or folder newly-built, edit certain file, change certain file or folder
Title or delete certain file or folder, have changed file or folder attribute etc., then the literary composition involved by this change
Part or file are all files to be synchronized.
When the present embodiment is applied to client, this file to be synchronized can by client from local obtain it is also possible to by
Client obtains from server, and the advantage being obtained file by client is to network, and saves bandwidth;Accordingly, when this enforcement
Example is when being applied to server end, and this file to be synchronized can obtain it is also possible to by server from client by server from local
Obtain, the advantage being obtained file by server end is that the file to be synchronized of all access devices can be carried out by server end as early as possible
Collect, obtain file than client more overall and efficient.The application does not limit to the mode obtaining file to be synchronized.
Obtain is local file to be synchronized from local, from server obtain be all devices accessing with server end treat with
Step file.
Specifically, when the present embodiment is applied to client, can be by client according to local file generated to be synchronized
List to be synchronized(Most preferred embodiment), advantage is to network, and saves bandwidth, collects locally file to be synchronized more efficient;Also may be used
With the list to be synchronized from server direct access generation, relatively it is applied to the situation that server end counts file to be synchronized.?
That is, listed files to be synchronized locally can obtain from client, or, obtain from server end.
Similar, when the present embodiment is applied to server, can by server according to server end count to be synchronized
File generated list to be synchronized is it is also possible to list to be synchronized from client direct access generation.Generated by server end and treat
The advantage of synchronous list is that the file to be synchronized of all access devices can be collected, than client by server end as early as possible
Generate list to be synchronized more overall and efficient;In a word, the application does not limit to the concrete mode generating list to be synchronized.
That is, listed files to be synchronized can obtain from client, or, locally obtain from server end.
The generation method of this generation list to be synchronized is identical with prior art, and I will not elaborate.
Step 102, counts and preserves the important word information included in each file name to be synchronized.
Important word information included in file name to be synchronized refers to, such as include " password ", " association in file name
The important word of view ", " I ", " important ", " user name ", " account book ", " evidence " etc, and the important journey of these primary words
Degree, number of times that these words occur etc..
Step 103, identifies the file to be synchronized in described listed files to be synchronized according to statistical information, obtains each and treats together
Corresponding first identification information of step file, described first identification information is the weight representing each file significance level to be synchronized
Value.
For step 102,103, have following several possible implementation.
A kind of possible implementation method is to be previously stored with keywords database in server end, preserves in described keywords database
There is the title of each primary word, the corresponding important word parameter P of each primary word titlea, and corresponding with each primary word title
The first weight Wa';Described first weight Wa' for server end to the filename word segmentation processing of All Files after, count each point
The number of times of word, obtains, according to weight allocation strategy, the weight that this participle occurs relative to All Files name.By this first weight Wa'
It is recognized that the primary word weighted value of certain user, different user user's customs is different, and the primary word of their concerns is different,
It is which or which by the primary word that this method can find specific user.
Above-mentioned can be to go out the number of times counting relative to All Files name as this this participle according to weight allocation strategy
Existing weight, for example, statistical result is 5 times, then the weight of this participle is 5;Can also be that the number of times doing mathematicses counting are become
The weight that this participle occurs is obtained relative to All Files name, the result for example counting is 5 times can be according to preset formula after changing
Its weight definition is 3 or 6;Can also be and the weight that this participle occurs relative to All Files name is obtained according to the definition of user,
For example, in order to screen out interference, the word that user can define to some no any implications is excluded, for example, definition " ", " new
Build ", " new folder ", the word of " " do not have any Practical significance, and its weight setting is minimum.
All of herein " weight allocation strategy " is above-mentioned implication, and similar part no longer does repeat specification.
The step then counting and preserving the important word information included in each file name to be synchronized described in step 102
Including:
Word segmentation processing is carried out by client to described file name to be synchronized, obtains some words, each participle is as one
Primary word;
Client sends primary word information inquiring request, obtains each primary word from the response receiving
The first corresponding weight Wa';The first weight W corresponding to each primary word describeda' as in each file name to be synchronized
The important word information being comprised;
Included according to the step that statistical information identifies the file to be synchronized in described listed files to be synchronized in step 103:
The first weight W described in client applicationa' identify described listed files to be synchronized in file to be synchronized;
The weighted value P of each file significance level to be synchronized represented by described first identification information is:
Wherein,(1)
Wherein, Wa=Wa', PaFor certain important word parameter, W in keywords databaseaFor this important word parameter PaRelatively all important
The weight of word, a is primary word number in file name to be synchronized.
Alternatively possible implementation, can also include in above-mentioned keywords database:Corresponding with each primary word title
Second weight Wa' ', described second weight Wa' ' treat the filename word segmentation processing of synchronous documents for client server after,
Count the number of times of each participle appearance, the weight that this participle occurs relative to All Files name is obtained according to weight allocation strategy;
For example, for screening out interference, the word of some no any implications can be excluded.For example, " ", " newly-built ", " new
Build file ", the word of " " there is no any Practical significance, by its weight setting be minimum.
The first weight W when different files to be synchronizeda' identical when, in step 103 according to statistical information mark described in treat with
The step of the file to be synchronized in step file list includes:
The first weight W described in client applicationa' and the second weight Wa' ' identify treating in described listed files to be synchronized
Synchronous documents;
The weighted value P of each file significance level to be synchronized represented by described first identification information is:
Wherein, Wa=Wa'+Wa' ', PaFor certain important word parameter, W in keywords databaseaFor this important word parameter PaInstitute relatively
There is the weight of primary word, a is primary word number in file name to be synchronized.
The feature of above two mode is to carry out word segmentation processing by client, then, is obtained from server end by client
Important word information is the weight of each participle, afterwards, treats synchronous documents using the weight obtaining and is identified, so, service
Device end only needs record information it is not necessary to carry out extra process.
Another possible implementation, is previously stored with keywords database in server end, preserves in described keywords database
There is the title of each primary word, the corresponding important word parameter P of each primary word titlea, and corresponding with each primary word title
The first weight Wa;Described first weight WaAfter the filename word segmentation processing to All Files for the server end, count each participle
Number of times, the weight that this participle occurs relative to All Files name is obtained according to weight allocation strategy.For example, for screening out interference, can
Excluded with the word to some no any implications.For example, " ", " newly-built ", " new folder ", the word of " " do not have
Any Practical significance, its weight setting is minimum.
The step counting and preserving the important word information included in each file name to be synchronized in step 102 includes:
I) file name to be synchronized is obtained from each client by server end;
Specifically, the file name to be synchronized of each client is obtained from list to be synchronized by server end;Or, from
The file name to be synchronized of each client is obtained in the file name message to be synchronized of each client push;Or,
Send the request obtaining title to be synchronized to each client, obtain treating together of each client from the response of each client
Step file title.
Ii) described file name to be synchronized is carried out with word segmentation processing, obtains some words, each participle is important as one
Word;
Iii) some words after described participle are saved in keywords database as primary word, thus it is to be synchronized to obtain each
Important word information included in file name;
Wherein, preserve the title of each primary word in this keywords database described, each primary word title is corresponding important
Word parameter Pa, and first weight W corresponding with each primary word titlea'.
Included according to the step that statistical information identifies the file to be synchronized in described listed files to be synchronized in step 103:
Described first weight W is applied by server enda' identify described listed files to be synchronized in file to be synchronized;This
When, the weighted value P of each file significance level to be synchronized represented by described first identification information is:
Wherein, Wa=Wa', PaFor certain important word parameter, W in keywords databaseaFor this important word parameter PaRelatively all important
The weight of word, a is primary word number in file name to be synchronized.
Explain again with reference to an example.
Collect file name to be synchronized, described file name to be synchronized is carried out with word segmentation processing, obtain some words(Weigh
Want word), inquired about in the keywords database prestoring, in this keywords database, preserved each primary word title, corresponding each
Individual important word parameter PaAnd weight W of this primary worda, then calculate the weight of each word after word segmentation processing, by each
The weight of word is added, and then obtains the weighted value P of file name to be synchronizedPrimary word.
For example, there are two files to be synchronized, one entitled " common cooperation agreement ", another is " important cooperation agreement ", then
" common ", " cooperation " and " agreement " is respectively to the result after two file name participles, with " important ", " cooperation " and " agreement ".Root
According to keyword database, the key word that above-mentioned two file name can separate is " common ", " cooperation ", " agreement " and " important ".Then
The weighted value of " common cooperation agreement " filename is
The weighted value of " important cooperation agreement " filename is
Wherein, Pa1、Pa2、Pa3And Pa4Represent " common ", " cooperation ", " agreement " and " important " parameter, W respectivelya1、Wa2、Wa3And Wa4, point
Do not represent the weight of each parameter, weighted value can be positive number, negative or zero.
It should be noted that above-mentioned keywords database can be set in advance it is also possible to possess self-learning function, i.e. basis
The use habit of user is learnt and is adjusted.Keywords database is put and can be stored in server end and/or client.Generally, close
Keyword storehouse is placed on server end, and server end calculates and storage capacity is more powerful than client.
Step 104, according to described first identification information, arranges to each file to be synchronized in described list to be synchronized
Sequence, obtains the transmission sequence of each file to be synchronized;
Wherein, each file to be synchronized in described list to be synchronized is ranked up, obtains the biography of each file to be synchronized
The mode of defeated order can be to include following two modes:
Mode one:Labelling is transmitted to each file to be synchronized in list to be synchronized, is obtained according to transmission labelling result
Transmission sequence, that is, putting in order of each file to be synchronized is constant, to identify the order of transmission simply by labelling.
Mode two:The position of each file to be synchronized in list to be synchronized is rearranged according to the order of transmission, according to
The position of each file to be synchronized obtains transmission sequence.That is, by file arrangements to be synchronized high for significance level above, each
The sequence of positions of file to be synchronized is transmission sequence.
Certainly, the application does not treat the acquisition pattern of the transmission sequence of synchronous documents and limits, any possible transmission
Mode can be applied in the application.
Step 105, according to the transmission sequence of each file to be synchronized in described list to be synchronized, executes file synchronization behaviour
Make.
Execution file synchronization operation is together to be executed and can be realized by client and server end.
The synchronous method that the application embodiment of the present invention is provided, after according to file generated to be synchronized list to be synchronized, leads to
Cross the important word information included in each file name to be synchronized, can be to the biography of each file to be synchronized in list to be synchronized
Defeated order is adjusted, so that the vital document comprising primary word can both have been improve overall work effect by priority synchronization
Rate, reduces the loss risk of vital document again.
It should be noted that can also include for embodiment illustrated in fig. 1:Count and preserve described file to be synchronized is entered
The peration data of row operation;Now, in above-mentioned steps 103, treating together in described listed files to be synchronized is identified according to statistical information
The step of step file includes:Treating in described listed files to be synchronized is identified according to described important word information and described peration data
Synchronous documents.In this case, the weighted value P of each file significance level to be synchronized represented by described first identification information is
Wherein, PPrimary wordPrimary word information parameter included in file name to be synchronized, WPrimary wordRepresent important word information
Parameter is relative to the weight of the type parameter of certain peration data;PxRepresent the type parameter of certain peration data, WxRepresent this operation
Data type parameters PxThe weight of relative all operations data type, x represents the number of type.
Aforesaid operations data type at least includes one of or combination in any:(1)Edited in predetermined amount of time
The frequency,(2)Multiple person cooperational processing information,(3)Browsing fileinfo,(4)File amount of change information,(5)Be opened number of times
Information,(6)File attribute information,(7)Active degree information,(8)Cumulative edit duration information.
Specifically, the value of above-mentioned x can be the arbitrary value in 1-8, when x value is 1, represent that above-mentioned weight is only joined
Examine an operation data type, certainly, this operation data type can be any one in above-mentioned 1-8, when x value is 2,
Represent above-mentioned weight with reference to two operation data types, certainly, this two operation data types can be any in above-mentioned 1-8
Two, similar, x value is that 3 expressions may be referred to any three operation data types in above-mentioned 1-8.
In order to make it easy to understand, illustrating to the partial data of aforesaid operations data type:
(1)Is referred to by editor's frequency in predetermined amount of time, within certain time period certain file to be synchronized edited time
Number information, for example, counts from current time, the number of times that in nearest 2 hours, certain file is edited;For example set up from this document again
Time, this document added up by editor's number of times so far.
(2)Multiple person cooperational processing information refers to, such as participates in the number of collaborative editing, the number accessing is worked in coordination with participation, many
Whether there is important relation people etc. in total degree that people edits, participant.
(3)Browsing fileinfo to refer to, the title of the file that such as user is browsing, the file browsing
All Files list under path, browsing opening time of file etc..
(4)File amount of change information refers to, such as, after user edits file, this document varies by how many data.
(5)The number information that is opened refers to, for example user oneself opens the number of times of certain file, or multiple person cooperational situation
Under, the number of times summation that certain file is opened by all co actors.
(6)File attribute information refers to, for example file extension, and whether file is vital document by user setup, file
Whether it is read-only, limits editorial staff, carry password, if be arranged to cooperate file, modification time information etc., by these
Attribute information is showing the significance level of this file.
(7)Active degree information refers to, for example according to by editor's number of times more, the number of times that is opened is more, be shared to many
People etc. is calculating active degree.
(8)Cumulative edit duration information refers to, for example the time of user oneself cumulative edit since document creation, owns
The time of co actor cumulative edit together with user, or file is in the time of certain period all co actors cumulative edit
Deng.
With regard to WxRepresent this operational data class shape parameter PxThe weight of relative all operations data type, above-mentioned 8 operands
It is different according to type for the contribution of file significance level, such as high than the weight of active degree information by one by editor's number of times
A bit, therefore by each WxGive different weights to adjust each tribute to file significance level for operational data class shape parameter
Offer size.
It should be noted that the application does not limit to the type of peration data, peration data enumerated above
The embodiment that type is only possible to, any type that can be used to pass judgment on the peration data of significance level can be applied to
In the application.
Here, if according to each file to be synchronized in described list to be synchronized transmission sequence, execution file synchronization behaviour
Make for client, then aforementioned obtain the mode to the peration data that described file to be synchronized is operated and include:From client
Local acquisition, or, obtain from server end.
If according to the transmission sequence of each file to be synchronized in described list to be synchronized, execute file synchronization operation is
Server end, then aforementioned middle acquisition includes to the mode of the peration data that described file to be synchronized is operated:From server end
Local acquisition, or, obtain from client.
Should in aforementioned manners, can be suitable to the transmission of each file to be synchronized in list to be synchronized by operation data type
Sequence is adjusted, so that vital document can both have been improve whole work efficiency by priority synchronization, reduces important literary composition again
The loss risk of part.
Below to above-mentioned formula(2)It is described in detail again.
According to explanation above, above-mentioned formula(2)In x be natural number, for example can with value 1-8 it is possible to understand that:
When x value is equal to 1, because only considering a condition, the W in above-mentioned formulaxGenerally value is 1, certainly, if
Needs can also value be other numerical value such as 2,3.In the application, not to x=1 in the case of, WxValue limit.
When x value is not equal to 1, need to refer to multiple conditions, now, WxValue be typically not equal to 1, specifically, Wx
Value to be weight according to each operation data type to determine.
For example, x=3, and the data manipulation type of reference is(1)In predetermined amount of time by editor's frequency,(2)Multiple person cooperational
Processing information,(4)File amount of change information, then formula now(2)For:
W in above-mentioned formulaThe frequency、WMultiple person cooperational、WFile amount of changeValue be different, for example, WThe frequencyValue 1.5, WMultiple person cooperationalValue
For 2, WFile amount of changeValue is 1.
It is appreciated that in actual applications, the type of any peration data that can be referenced can apply the application
In, that is, the value of x can also be not limited to above-mentioned 1-8, can change with the change of operand type.When there being multiple operations
When data type is referenced, WxCan be positive number, negative or zero.Wherein WxIt is negative number representation, the weight of this parameter does not weigh very much
Will;WxIt is that this statistics of this parameter of zero expression does not have referential.Specifically, WxA kind of=0 situation is that client needs and clothes
P is obtained after the link of business device endx, but can not communicate with server end in effective time and obtain PxParameter, then by WxIt is entered as
0.
Below to formula(2)Middle x value be 1 when, various in the case of PxIllustrate respectively.
(1)If described operation data type is by editor's frequency information in predetermined amount of time;
The described step identifying the file to be synchronized in described listed files to be synchronized according to described peration data includes:According to
It is identified by editor's frequency information within a predetermined period of time according to file to be synchronized;
Then Px=PThe frequency;
Described PThe frequencyFor the frequency parameter edited in predetermined amount of time.
Specifically, client server treat in advance synchronous documents statistics edited within a predetermined period of time time
Number, after client obtains list to be synchronized, obtains the number of times that file to be synchronized is edited within a predetermined period of time;Client or clothes
Business device end can also carry out to All Files in network disk file counting the number of times edited in predetermined amount of time in advance, is then directed to
File in list to be synchronized, obtains by editor's number of times and calculates the weighted value P=corresponding to the frequency of each file to be synchronized
Px, the file then treated in synchronous documents list carries out descending according to weighted value P, according to be synchronized after rearrangement
Listed files, by file prioritised transmission high for the frequency, can as early as possible complete synchronization in next time before editor to realize these files.When
So, the needs according to practical application, WThe frequencyPositive number, negative or zero can be taken.
Above-mentioned preset time period can be artificial setting, for example, manually set to the file to be synchronized in the T1-T2 time period
Editor's number of times counted;Above-mentioned preset time period can also be that system is voluntarily arranged, for example, be opened into statistics from client
Time of origin ends, and the editor's number of times during this period of time treating synchronous documents is counted, or, record is opened from client
The current time occurring to statistics ends the editor's number of times in this period, but only to a period of time nearest in this period(Example
As nearest two hours)Editor's frequency counted.As most preferred embodiment it is believed that this document is from the beginning of foundation, compiled
Volume number of times is more, and it is bigger to the significance level of user, therefore sets up this period so far from file, for optimal timing statisticses
Scope.
It should be noted that as most preferred embodiment, currently whether the above-mentioned statistics by editor's frequency information and client
Networking is unrelated, and this is edited frequency information and can continuously count it is not necessary to reset because of suspension.Certainly, reset after suspension,
Enable to recalculate to by editor's frequency information.
(2)If the multiple person cooperational processing information of the described operation data type file to be synchronized that is each;
The described step identifying the file to be synchronized in described listed files to be synchronized according to described peration data includes:According to
Multiple person cooperational processing information according to each file to be synchronized is identified;
Then
Wherein, PMultiple person cooperationalFor the multiple person cooperational processing information parameter of file to be synchronized, PbRepresent certain reference in multiple person cooperational
The parameter of condition, WbFor this reference conditions parameter PbThe weight of relatively all reference conditions, b represents in multiple person cooperational and needs to refer to
Condition number.
Specifically, a kind of possible mode is, sets the reference parameter of multiple person cooperational, and the weight according to parameters obtains
The weighted value of file to be synchronized.For example, setting three below parameter is b=3:Participate in the number of collaborative editing, participate in collaborative visit
Whether there is important relation people in the number asked, participant(Such as in company senior in office, attached most importance to very important person by this user setup
The people people more with this users to share and the number of times that cooperates of member), then, for a file to be synchronized, its weighted value isWherein, Pb1、Wb1For participating in collaborative editing number
Parameter and this parameter weight, Pb2、Wb2For participating in the collaborative parameter of the number of visiting people and the weight of this parameter, Pb3、Wb3For participating in
Whether there is the weight of important relation people's parameter and this parameter in people.
It should be noted that above three parameters setting are only a possible embodiment, the application is not right
Set number of parameters and content are defined, and concrete application can determine according to practical situation.
(3)If the described operation data type file to be synchronized that is each browse fileinfo;
The described step identifying the file to be synchronized in described listed files to be synchronized according to described peration data includes:According to
The fileinfo that browses according to each file to be synchronized is identified;
Then
Wherein, PJust browsing fileBrowse fileinfo parameter, P for file to be synchronizedcRepresent and browsing certain in file
The parameter of individual reference conditions, WcFor this reference conditions parameter PcThe weight of relatively all reference conditions, c represents and browses file
In the condition number that needs to refer to.
PcReference conditions can be the title of the file that user is browsing, all under the folder path that browses
Listed files, browsing file open duration etc..
Specifically, a kind of possible being achieved in that, obtains the path currently browsing file place file, judges
Whether this document folder is the root folder of file in storage Dropbox, if it is not, then all giving the by lower for this document folder All Files
One weight, the file to be synchronized under non-this document is pressed from both sides all gives the second weight, and wherein, the first weight is more than the second weight;If
It is then to be left intact.As such, it is possible to make the file currently browsing obtain higher weight.For example, root folder
For E:Fast disk, the file currently browsing is in " E:Fast disk file " in the case of, then by " E:Fast disk file " in
File all to be synchronized all give as the first weight such as 10, by non-" E:Fast disk file " in file to be synchronized all give
For the second weight such as 5.Certainly, above-mentioned second weight can also be equal to zero or negative, now, be equivalent to and only consider currently
The file place file browsing.
It should be noted that why will determine whether to store the root folder of file in Dropbox, it is because, if worked as
The front file browsing is in root folder, then need all to give the first weight by file all of in root folder, this
The all of file weight reality to be synchronized of sample is all the same, has had been out the meaning of weight.Only in the literary composition currently just browsing
When part is in non-root folder, different priorities can be distinguished by aforementioned different weight.As such, it is possible to make current
The All Files browsing under the file of file place obtains priority synchronization.
Alternatively possible is achieved in that, obtains in list to be synchronized and is currently browsing file place file, only
First grade file during this document is pressed from both sides gives the first weight, and that is, the file in sub-folder in this document folder no longer carries out any place
Reason.As such, it is possible to make the first grade file currently browsing under the file of file place obtain priority synchronization.
(4)If the file amount of change information of the described operation data type file to be synchronized that is each;
The described step identifying the file to be synchronized in described listed files to be synchronized according to described peration data includes:According to
File amount of change information according to each file to be synchronized is identified;
Then Px=PFile amount of change;
Wherein, described PFile amount of changeFile amount of change information parameter for file to be synchronized.
Specifically, a kind of possible being achieved in that, counts the modification amount of each file to be synchronized, big according to modification amount
The different weights of little imparting, wherein, modification amount is less, and weight is higher, and modification amount is bigger, and weight is less.For example, a file is repaiied
Changed two words, another file increased the content of a paragragh, then, have modified two words file be endowed higher
Weight, another file will be endowed relatively low weight.The little file of prioritised transmission modification amount.
(5)If the number information that is opened of the described operation data type file to be synchronized that is each;
The described step identifying the file to be synchronized in described listed files to be synchronized according to described peration data includes:According to
The number information that is opened according to each file to be synchronized is identified;
Then
Wherein, described PBe opened number of timesFile for file to be synchronized is opened number information parameter.PdRepresent that file is opened
The parameter of certain reference conditions, W in number of timesdFor this reference conditions parameter PdThe weight of relatively all reference conditions, d represents file
Be opened the condition number needing to refer in number of times.PdReference conditions can be the number of times that user oneself opens certain file,
Or in the case of multiple person cooperational, number of times summation that certain file is opened by all co actors etc..
Specifically, a kind of possible being achieved in that, counts and obtains the number of times that file to be synchronized is opened, and is opened secondary
The many files of number are endowed higher weight, are having the preferentially transmitted with the file ensureing to be opened often, to realize these files
Synchronization can be completed as early as possible before being opened next time.Certainly, the needs according to practical application, WBe opened number of timesPositive number, negative can be taken
Or zero.
Alternatively possible is achieved in that, sets the reference parameter of the number of times that is opened, is obtained according to the weight of parameters
Obtain the weighted value of file to be synchronized.For example, set three below parameter:Identical file is opened people by different co actors simultaneously
Number, identical file be opened total number of persons, open important relation people number in people(Such as in company senior in office, by this
User setup is the people of important persons people more with this users to share and the number of times that cooperates etc.), i.e. d=3, then, for one
For file to be synchronized,Wherein, Pd1、Wd1
Opened the weight of number parameter and this parameter, P for identical file by different co actors simultaneouslyd2、Wd2It is opened always for identical file
Number parameter and the weight of this parameter, Pd3、Wd3Open the weight of important relation people number parameter and this parameter in people.
It should be noted that above three parameters setting are only a possible embodiment, the application is not right
Set number of parameters and content are defined, and concrete application can determine according to practical situation.
(6)If the file attribute information of the described operation data type file to be synchronized that is each;
The described step identifying the file to be synchronized in described listed files to be synchronized according to described peration data includes:According to
File attribute information according to each file to be synchronized is identified;
Then
Wherein, PFile attributeFor the file attribute information parameter of file to be synchronized, PeRepresent certain reference in file attribute information
The parameter of condition, WeFor this reference conditions parameter PeThe weight of relatively all reference conditions, e represents in file attribute information to be needed
The condition number of reference.File attribute information as reference conditions includes:File extension, whether file by user setup be
Vital document, whether file is read-only, limits editorial staff, carries password, if be arranged to cooperate file, modification time
Deng showing the significance level of this file by these attribute informations.
Specifically, a kind of possible being achieved in that, the reference parameter of enactment document attribute information, according to parameters
Weight obtains the weighted value of file to be synchronized.For example, following two parameters are set:User Defined parameter, made according to user
It is accessed number of times, i.e. e=2 with the file that habit statistical goes out, then, for a file to be synchronized,Wherein, Pe1、We1For User Defined parameter and should
The weight of parameter, Pe2、We2It is the weight being accessed count parameter and this parameter according to the file that user's use habit counts.
Specifically, file extension is a kind of mechanism for logo file form for the operating system.Permissible using extension name
Distinguish different file types.When extending entitled temporary file, garbage files, severity level is minimum, and generally we are by WeTake
Value negative, the file significance level of this extension name mark is reduced.
Specifically, file is the file that certain application program stores temporary file or garbage files, and this document presss from both sides
And be in this document folder under file, its corresponding WeSo that weight is negative value, file significance level drops value negative significantly
Low.
Specifically, file is the situation that certain application program mark is many people Shared Folders, and this document presss from both sides and locates
File under this document folder, its corresponding WeValue positive number, weight raises, and file significance level rises.
(7)If the active degree information of the described operation data type file to be synchronized that is each;
The described step identifying the file to be synchronized in described listed files to be synchronized according to described peration data includes:According to
Active degree information according to each file to be synchronized is identified;
Then
Wherein, PActive degreeActive degree information parameter for each file to be synchronized.PfRepresent certain in the active degree of file
The parameter of individual reference conditions, WfFor this reference conditions parameter PfThe weight of relatively all reference conditions, f represents file active degree
In the condition number that needs to refer to.Wherein PfCan be edited number of times, the number of times that is opened, be shared to many people etc. with reference to because
Element.
Specifically, a kind of possible being achieved in that, sets the reference parameter of active degree information, according to parameters
Weight obtains the weighted value of file to be synchronized.For example, following two parameters are set:It is currently at treating together of screen display state
Step file, the more file to be synchronized of the number of times that is opened, i.e. f=2, then, for a file to be synchronized,Wherein, Pf1、Wf1For being currently at treating of screen display state
Synchronous documents parameter and the weight of this parameter, Pf2、Wf2Power for the more file parameters to be synchronized of the number of times that is opened and this parameter
Weight.As such, it is possible to allow the high file of active degree by priority synchronization.
(8)If the cumulative edit duration information of the described operation data type file to be synchronized that is each;
The described step identifying the file to be synchronized in described listed files to be synchronized according to described peration data includes:According to
Cumulative edit duration information according to each file to be synchronized is identified;
Then
Wherein, wherein, PCumulative edit durationFor the cumulative edit duration information parameter of file to be synchronized, PgWhen representing cumulative edit
The parameter of certain reference conditions, W in long messagegFor this reference conditions parameter PgThe weight of relatively all reference conditions, g represents tired
The condition number needing to refer in meter editor's duration.Reference conditions as cumulative edit duration information include:User oneself is certainly
Since document creation, the time of cumulative edit adds up editor-in-chief's duration of certain file, and all co actors add up together with user
The time of editor adds up the total duration that certain file is edited interval, or file adds up in certain period all co actors
The factor such as time of editor, or add up total duration that certain file is opened etc..
Specifically, a kind of possible being achieved in that, sets the reference parameter of cumulative edit duration information, according to each ginseng
The weight of number obtains the weighted value of file to be synchronized.For example, set three below parameter:During the editor-in-chief of certain file accumulative
Long, add up the total duration that certain file is edited interval, add up the total duration that certain file is opened, i.e. g=3, then, for
For one file to be synchronized,Wherein,
Pg1、Wg11 is accumulative editor-in-chief's duration parameters of certain file and the weight of this parameter, Pg2、Wg2Edited for adding up certain file
The total duration parameter at interval and the weight of this parameter, Pg3、Wg3For adding up total duration parameter and this parameter that certain file is opened
Weight.
It should be noted that above three parameters setting are only a possible embodiment, the application is not right
Set number of parameters and content are defined, and concrete application can determine according to practical situation.
It should be noted that for aforementioned all embodiments, operating when according to described list to be synchronized, executing file synchronization
During, can also include:
Timing or real-time update list to be synchronized;After the completion of current synchronous file synchronization operation, according to described
List execution simultaneously operating to be synchronized after renewal.
As such, it is possible to more timely ensure that vital document, by priority synchronization, further increases whole work efficiency, reduces
The loss risk of vital document.It is currently up-to-date for being additionally, since performed list to be synchronized, can also avoid transmitting former
It is no longer necessary to the file uploading after being planned to upload again, Internet resources can be saved.
It should be noted that for aforementioned all embodiments, if network interrupts in synchronizing process, can also include:
Preserve the list to be synchronized being being currently used, and record synchronous documents, after network reconnects, according to described to be synchronized
List, continues executing with simultaneously operating to not synchronous file.
As such, it is possible to reduce the number of times of inter-net communication, reduce network load, save Internet resources further, improve whole
Body synchronous efficiency.
Present invention also provides a kind of device of file synchronization, referring to Fig. 2, described device includes:
List acquiring unit 201, for obtaining listed files to be synchronized, described list to be synchronized includes literary composition to be synchronized
Part;
Statistic unit 202, for counting and preserving the important word information included in each file name to be synchronized;
Mark unit 203, for identifying the file to be synchronized in described listed files to be synchronized according to statistical information, obtains
First identification information, described first identification information is the weighted value representing each file significance level to be synchronized;
Sequencing unit 204, for according to described first identification information, to each file to be synchronized in described list to be synchronized
It is ranked up, obtain the transmission sequence of each file to be synchronized;
Lock unit 205, for the transmission sequence according to each file to be synchronized in described list to be synchronized, executes file
Simultaneously operating.
The synchronizer that the application embodiment of the present invention is provided, after according to file generated to be synchronized list to be synchronized, leads to
Cross the important word information included in each file name to be synchronized, can be to the biography of each file to be synchronized in list to be synchronized
Defeated order is adjusted, so that the vital document comprising primary word can both have been improve overall work effect by priority synchronization
Rate, reduces the loss risk of vital document again.Everyone residing sphere of life is different, equal for everyone important thing
Differ, for example someone's concern contract, someone pays close attention to chat record, someone's concern video etc., and therefore each user's is important
Word is different, and by this device, we achieve the primary word finding different user, and the primary word according to user arranges vital document
Rank so that the vital document of this user can obtain priority synchronization.
It should be noted that in the above-mentioned all embodiments of the application, logically each user corresponds to a server end,
Because each user might have multiple client, thus be equivalent to the multiple client of the corresponding user of a server end, because
This, the All Files that each server end is counted can be the All Files of this user that server end preserves, i.e. the first power
It is to screen the most primary word of occurrence number from the file that this user preserves again;The commonly used literary composition with concern of user
Part, can embody from file to be synchronized, the use of the therefore second weight, and that can commonly use user's warp and pay close attention to is important
Word screens.
Present invention also provides a kind of server end, referring to Fig. 3, specifically include:
List obtaining unit 301, for obtaining listed files to be synchronized, described list to be synchronized includes literary composition to be synchronized
Part;
First statistic unit 302, for counting and preserving the important word information included in each file name to be synchronized;
Mark unit 303, for identifying the file to be synchronized in described listed files to be synchronized according to statistical information, obtains
First identification information, described first identification information is the weighted value representing each file significance level to be synchronized;
Lock unit 304, for the transmission sequence according to each file to be synchronized in described list to be synchronized, executes file
Simultaneously operating.
Above-mentioned server end can also include:
Sequencing unit(Figure does not regard), for according to described first identification information, in described list to be synchronized, each is treated together
Step file is ranked up, and obtains ranking results, so that described lock unit executes file synchronization operation according to ranking results.
In the case of one kind, above-mentioned server end can also include:
Memory element(Figure does not regard), it is used for being previously stored with keywords database, preserve each in described keywords database important
The title of word, the corresponding important word parameter P of each primary word titlea, and first weight corresponding with each primary word title
Wa';Described first weight Wa' for server end to the filename word segmentation processing of All Files after, count the number of times of each participle,
The weight that this participle occurs relative to All Files name is obtained according to weight allocation strategy;
Described first identification information is that the weighted value representing each file significance level to be synchronized is:
Wherein, Wa=Wa',
Wherein, PaFor certain important word parameter, W in keywords databaseaFor this important word parameter PaThe power of relatively all primary words
Weight, a is primary word number in file name to be synchronized.
In the case of another kind, above-mentioned server end can also include:
Memory element, is used for being previously stored with keywords database, preserves the title of each primary word in described keywords database,
The corresponding important word parameter P of each primary word titlea, and first weight W corresponding with each primary word titlea' and with every
Corresponding second weight W of individual primary word titlea'';Described first weight Wa' it is the filename participle to All Files for the server end
After process, count the number of times of each participle, the weight that this participle occurs relative to All Files name is obtained according to weight allocation strategy;
Described second weight Wa' ' treat the filename word segmentation processing of synchronous documents for client server after, count each participle
The number of times occurring, obtains, according to weight allocation strategy, the weight that this participle occurs relative to All Files name;
The weighted value P of each file significance level to be synchronized represented by described first identification information is:
Wherein, Wa=Wa'+Wa' ',
Wherein, PaFor certain important word parameter, W in keywords databaseaFor this important word parameter PaThe power of relatively all primary words
Weight, a is primary word number in file name to be synchronized.
Above-mentioned server end can also include:
Second statistic unit(Figure does not regard), for counting and preserving the operand that described file to be synchronized is operated
According to;Now, described mark unit, is additionally operable to identify treating in described listed files to be synchronized according to statistical information and peration data
Synchronous documents.In this case, the weighted value P of each file significance level to be synchronized represented by described first identification information is
Wherein, PPrimary wordPrimary word information parameter included in file name to be synchronized, WPrimary wordRepresent important word information
Parameter is relative to the weight of the type parameter of certain peration data;PxRepresent the type parameter of certain peration data, WxRepresent this operation
Data type parameters PxThe weight of relative all operations data type, x represents the number of type.
Described operation data type at least includes one of or combination in any:By editor's frequency in predetermined amount of time
Secondary, multiple person cooperational processing information, browsing fileinfo, file amount of change information, the number information that is opened, file attribute letter
Breath, active degree information, cumulative edit duration information.
Present invention also provides a kind of server apparatus, foregoing server end is installed.
Above-mentioned server end and server apparatus that application the application provides, when according to file generated to be synchronized row to be synchronized
After table, by counting and preserving the important word information included in each file name to be synchronized, can be in list to be synchronized
The transmission sequence of each file to be synchronized is adjusted, so that the vital document comprising important word information can be by preferentially same
Step, had both improve whole work efficiency, had reduced the loss risk of vital document again.On this basis, can also be by operation
Data type is adjusted to the transmission sequence of each file to be synchronized in list to be synchronized, thus further increasing overall work
Make efficiency, reduce the loss risk of vital document again.
Present invention also provides a kind of client, referring to Fig. 4, described client includes:
List obtaining unit 401, for obtaining listed files to be synchronized, described list to be synchronized includes literary composition to be synchronized
Part;
Mark unit 402, for treating described in the primary word message identification according to included in each file name to be synchronized
File to be synchronized in synchronous documents list, obtains the first identification information, described first identification information is to represent each literary composition to be synchronized
The weighted value of part significance level;
Transmission sequence obtaining unit 403, for obtaining the transmission sequence of each file to be synchronized;
Lock unit 404, for the transmission sequence according to each file to be synchronized in described list to be synchronized, executes file
Simultaneously operating.
Above-mentioned client can also include:
First statistic unit(Figure does not regard), for counting and preserving the primary word included in each file name to be synchronized
Information.
Above-mentioned first identification information is that the weighted value representing each file significance level to be synchronized is:
Wherein,
Wherein, PaFor certain important word parameter, W in keywords databaseaFor this important word parameter PaThe power of relatively all primary words
Weight, a is primary word number in file name to be synchronized.
Above-mentioned client can also include:
Sequencing unit(Figure does not regard), for according to described first identification information, in described list to be synchronized, each is treated together
Step file is ranked up, and obtains ranking results, so that transmission sequence obtaining unit obtains the transmission sequence of each file to be synchronized.
Above-mentioned client can also include:
Second statistic unit(Figure does not regard), for counting and preserving the operand that described file to be synchronized is operated
According to;Now, described mark unit, is additionally operable to identify treating in described listed files to be synchronized according to statistical information and peration data
Synchronous documents.In this case, the weighted value P of each file significance level to be synchronized represented by described first identification information is
Wherein, PPrimary wordPrimary word information parameter included in file name to be synchronized, WPrimary wordRepresent important word information
Parameter is relative to the weight of the type parameter of certain peration data;PxRepresent the type parameter of certain peration data, WxRepresent this operation
Data type parameters PxThe weight of relative all operations data type, x represents the number of type.
Aforesaid operations data type at least includes one of or combination in any:By editor's frequency in predetermined amount of time
Secondary, multiple person cooperational processing information, browsing fileinfo, file amount of change information, the number information that is opened, file attribute letter
Breath, active degree information, cumulative edit duration information.
Present invention also provides a kind of terminal unit, it is provided with foregoing client.
Above-mentioned client and terminal unit that application the application provides, when according to file generated to be synchronized list to be synchronized
Afterwards, by counting and preserving the important word information included in each file name to be synchronized, can be to each in list to be synchronized
The transmission sequence of individual file to be synchronized is adjusted, so that the vital document comprising important word information can be by preferentially same
Step, had both improve whole work efficiency, had reduced the loss risk of vital document again.On this basis, can also be by operation
Data type is adjusted to the transmission sequence of each file to be synchronized in list to be synchronized, thus further increasing overall work
Make efficiency, reduce the loss risk of vital document again.
Present invention also provides a kind of client, referring to Fig. 5, described client includes:
List obtaining unit 501, for obtaining listed files to be synchronized, comprises literary composition to be synchronized in described list to be synchronized
Part;
Mark unit 502, for according to the peration data that described file to be synchronized is operated, mark is described to be synchronized
File to be synchronized in listed files, obtains corresponding first identification information of each file to be synchronized, described first identification information
It is the weighted value representing each file significance level to be synchronized;
Transmission sequence obtaining unit 503, for obtaining the transmission sequence of each file to be synchronized, this transmission sequence is basis
In list to be synchronized described in described first identification information pair, each file to be synchronized is ranked up acquisition;
Lock unit 504, for the transmission sequence according to each file to be synchronized in described list to be synchronized, executes file
Simultaneously operating.
Above-mentioned client can also include:
Statistic unit(Figure does not regard), treat, for counting and preserving, the peration data that synchronous documents are operated.
Above-mentioned client can also include:
Sequencing unit(Figure does not regard), for according to described first identification information, in described list to be synchronized, each is treated together
Step file is ranked up, and obtains ranking results, so that transmission sequence obtaining unit obtains the transmission sequence of each file to be synchronized.
Above-mentioned client can also include:
Updating block(Figure does not regard), for during according to described list to be synchronized, executing file synchronization operation, fixed
When or real-time update list to be synchronized;
Described lock unit(Figure does not regard), it is additionally operable to after the completion of current synchronous file synchronization operation, according to institute
State the list execution simultaneously operating to be synchronized after renewal.
Above-mentioned client can also include:
Interruption logging unit(Figure does not regard), when interrupting for network in synchronizing process, what preservation was being currently used treats
Synchronous list, and record synchronous documents;
Described lock unit(Figure does not regard), it is additionally operable to after network reconnects, according to described list to be synchronized, to not same
The file of step continues executing with simultaneously operating.
The embodiment of the present invention additionally provides a kind of terminal unit, is provided with client as above.
The application client that provided of the embodiment of the present invention and terminal unit were so that vital document, by priority synchronization, both carried
High whole work efficiency, reduces the loss risk of vital document again.It is current for being additionally, since performed list to be synchronized
Up-to-date, can also avoid transmitting the file being again no longer necessary to after original plan will upload upload, save Internet resources, same with this
When, can more timely ensure that vital document, by priority synchronization, further increases whole work efficiency, reduces vital document
Loss risk.Further, can be according to the list to be synchronized of record to not synchronous literary composition after connection again of breaking in a network
Part continues executing with simultaneously operating, decreases the number of times of inter-net communication, reduces network load, saves Internet resources further, carries
High Integral synchronous efficiency.
The embodiment of the present invention additionally provides a kind of server end, and referring to Fig. 6, described server end includes:
List obtaining unit 601, for obtaining listed files to be synchronized, comprises literary composition to be synchronized in described list to be synchronized
Part;
Statistic unit 602, treats, for counting and preserving, the peration data that synchronous documents are operated;
Mark unit 603, for identifying treating in the listed files to be synchronized that client generates according to described peration data
Synchronous documents, obtain corresponding first identification information of each file to be synchronized, described first identification information be represent each treat with
The weighted value of step file significance level;
Lock unit 604, for the transmission sequence according to each file to be synchronized in described list to be synchronized, executes file
Simultaneously operating.
Above-mentioned server end can also include:
Sequencing unit(Figure does not regard), for according to described first identification information, in described list to be synchronized, each is treated together
Step file is ranked up, and obtains ranking results, so that described lock unit executes file synchronization operation according to ranking results.
Above-mentioned server end can also include:
Updating block(Figure does not regard), for during according to described list to be synchronized, executing file synchronization operation, fixed
When or real-time update list to be synchronized;
Described lock unit, is additionally operable to after the completion of current synchronous file synchronization operation, after described renewal
List to be synchronized execution simultaneously operating.
Above-mentioned server end can also include:
Interruption logging unit(Figure does not regard), when interrupting for network in synchronizing process, what preservation was being currently used treats
Synchronous list, and record synchronous documents;
Described lock unit, is additionally operable to after network reconnects, according to described list to be synchronized, to not synchronous file
Continue executing with simultaneously operating.
The embodiment of the present invention additionally provides a kind of server apparatus, is provided with server end as above.
The application server end that provided of the embodiment of the present invention and server apparatus so that vital document is by priority synchronization,
Both improve whole work efficiency, reduce the loss risk of vital document again.Being additionally, since performed list to be synchronized is
Currently up-to-date, can also avoid transmitting the file being again no longer necessary to after original plan will upload upload, save Internet resources, with
This can more timely ensure that vital document, by priority synchronization, further increases whole work efficiency, reduces important simultaneously
The loss risk of file.Further, can be according to the list to be synchronized of record to not synchronous after connection again of breaking in a network
File continue executing with simultaneously operating, decrease the number of times of inter-net communication, reduce network load, save network money further
Source, improves Integral synchronous efficiency.
For device related embodiment, because it is substantially similar to embodiment of the method, so fairly simple, the phase of description
In place of pass, the part referring to embodiment of the method illustrates.
For convenience of description, describing above-mentioned client and server is to be divided into various units to be respectively described with function.When
So, the function of each unit can be realized in same or multiple softwares and/or hardware when implementing the present invention.
As seen through the above description of the embodiments, those skilled in the art can be understood that the present invention can
Mode by software plus necessary general hardware platform to be realized.Based on such understanding, technical scheme essence
On in other words prior art is contributed partly can be embodied in the form of software product, this computer software product
Can be stored in storage medium, such as ROM/RAM, magnetic disc, CD etc., include some instructions use so that a computer equipment
(Can be personal computer, server, or network equipment etc.)Execution each embodiment of the present invention or embodiment some
Partly described method.
It should be noted that herein, such as first and second or the like relational terms are used merely to a reality
Body or operation are made a distinction with another entity or operation, and not necessarily require or imply these entities or deposit between operating
In any this actual relation or order.And, term " inclusion ", "comprising" or its any other variant are intended to
Comprising of nonexcludability, wants so that including a series of process of key elements, method, article or equipment and not only including those
Element, but also include other key elements being not expressly set out, or also include for this process, method, article or equipment
Intrinsic key element.In the absence of more restrictions, the key element that limited by sentence "including a ..." it is not excluded that
Also there is other identical element including in the process of described key element, method, article or equipment.
The present invention can be used in numerous general or special purpose computing system environment or configuration.For example:Personal computer, service
Device computer, handheld device or portable set, laptop device, multicomputer system, the system based on microprocessor, top set
Box, programmable consumer-elcetronics devices, network PC, minicomputer, mainframe computer, include any of the above system or equipment
Distributed computing environment etc..
The present invention can be described in the general context of computer executable instructions, such as program
Module.Usually, program module includes execution particular task or the routine realizing particular abstract data type, program, object, group
Part, data structure etc..The present invention can also be put into practice in a distributed computing environment, in these distributed computing environment, by
The remote processing devices connected by communication network are executing task.In a distributed computing environment, program module is permissible
It is located in the local and remote computer-readable storage medium including storage device.
The foregoing is only presently preferred embodiments of the present invention, be not intended to limit protection scope of the present invention.All
Any modification, equivalent substitution and improvement made within the spirit and principles in the present invention etc., are all contained in protection scope of the present invention
Interior.