The content of the invention
The purpose of the embodiment of the present invention is to provide a kind of data processing method, client, server end and equipment, to know
It is vital document which does not go out in file to be synchronized, so as to priority treatment vital document, improves whole work efficiency, drop
The loss risk of low vital document.
The embodiments of the invention provide a kind of data processing method, applied to file synchronization technical field, methods described bag
Include:
Obtain file to be synchronized;
The operation data operated to the file to be synchronized is counted and preserves, according to operation data mark
File to be synchronized, obtains the first identification information corresponding to each file to be synchronized, and first identification information is to represent respectively to treat together
The identification information of step file significance level;
According to first identification information, the file to be synchronized is ranked up.
Wherein, the identification information of each file significance level to be synchronized represented by the first identification information is weighted value P,
Wherein, PxRepresent the type parameter of some operation data, WxRepresent operational data class shape parameter PxRelatively all behaviour
Make the weight of data type, x represents the number of type.
Wherein, the operation data type comprises at least one of or any combination:Compiled in predetermined amount of time
Important word information, multiple person cooperational processing information included in volume frequency, file name to be synchronized, browsing fileinfo,
File variation information, the number information that is opened, file attribute information, active degree information, cumulative edit duration information.
Wherein, if the operation data type is by editor's frequency information in predetermined amount of time;
It is described identified according to the operation data in the listed files to be synchronized file to be synchronized the step of include:According to
It is identified within a predetermined period of time by editor's frequency information according to file to be synchronized;
Then Px=PThe frequency;
The PThe frequencyFor the frequency parameter edited in predetermined amount of time.
Wherein, the frequency parameter edited in the predetermined amount of time is compiled for some file to be synchronized in some period
The number information collected.
Wherein, if the operation data type is the important word information included in each file name to be synchronized;
It is described identified according to the operation data in the listed files to be synchronized file to be synchronized the step of include:According to
It is identified according to the important word information included in each file name to be synchronized;
Then
Wherein, the PPrimary wordFor the primary word information parameter included in file name to be synchronized, PaFor some primary word
Parameter, WaFor the important word parameter PaThe weight of relatively all primary words, a are primary word number in file name to be synchronized.
Wherein, some described important word parameter includes:If obtained after treating the title progress word segmentation processing of synchronous documents
Dry word, the parameter corresponding to each word is important word parameter.
Wherein, if the operation data type is the multiple person cooperational processing information of each file to be synchronized;
It is described identified according to the operation data in the listed files to be synchronized file to be synchronized the step of include:According to
It is identified according to the multiple person cooperational processing information of each file to be synchronized;
Then
Wherein, PMultiple person cooperationalFor the multiple person cooperational processing information parameter of file to be synchronized, PbRepresent that some in multiple person cooperational refers to
The parameter of condition, WbFor reference conditions parameter PbThe weight of relatively all reference conditions, b represent to need to refer in multiple person cooperational
Condition number.
Wherein, some reference conditions in the multiple person cooperational include:Participate in the number of collaborative editing, participate in collaboration access
Number, whether have important relation people in the total degree edited of more people or participant.
Wherein, if the operation data type browses fileinfo for each file to be synchronized;
It is described identified according to the operation data in the listed files to be synchronized file to be synchronized the step of include:According to
It is identified according to the fileinfo that browses of each file to be synchronized;
Then
Wherein, PJust browse fileFileinfo parameter, P are browsed for file to be synchronizedcExpression browses certain in file
The parameter of individual reference conditions, WcFor reference conditions parameter PcThe weight of relatively all reference conditions, c represent to browse file
In the condition number that needs to refer to.
Wherein, described some reference conditions browsed in file include:
All Files list or file is browsed under the title of the file browsed, the folder path browsed
Opening time.
Wherein, if the operation data type is the file variation information of each file to be synchronized;
It is described identified according to the operation data in the listed files to be synchronized file to be synchronized the step of include:According to
It is identified according to the file variation information of each file to be synchronized;
Then Px=PFile variation;
Wherein, the PFile variationFor the file variation information parameter of file to be synchronized.
Wherein, if the operation data type is the number information that is opened of each file to be synchronized;
It is described identified according to the operation data in the listed files to be synchronized file to be synchronized the step of include:According to
It is identified according to the number information that is opened of each file to be synchronized;
Then
Wherein, the PBe opened numberIt is opened number information parameter for the file of file to be synchronized.PdRepresent that file is opened
The parameter of some reference conditions, W in numberdFor reference conditions parameter PdThe weight of relatively all reference conditions, d represent file
Be opened the condition number needed to refer in number.
Wherein, the file some reference conditions in number that are opened include:User oneself opens the number of some file,
The number summation that some file is opened by all teamworkers in the case of multiple person cooperational, identical file are opened simultaneously by different teamworkers
Number, the total number of persons that identical file is opened by all teamworkers in the case of multiple person cooperational, or open in people important relation everybody
Number.
Wherein, if the operation data type is the file attribute information of each file to be synchronized;
It is described identified according to the operation data in the listed files to be synchronized file to be synchronized the step of include:According to
It is identified according to the file attribute information of each file to be synchronized;
Then
Wherein, PFile attributeFor the file attribute information parameter of file to be synchronized, PeRepresent that some in file attribute information refers to
The parameter of condition, WeFor reference conditions parameter PeThe weight of relatively all reference conditions, e represent to need in file attribute information
The condition number of reference.
Wherein, some reference conditions includes in file attribute information:Whether file extension, file are arranged to important text
Whether part, file are read-only, limit editorial staff, with password, if are arranged to the file that cooperates, filemodetime, use
Family custom parameter or the file counted according to user's use habit are accessed number.
Wherein, if the operation data type is the active degree information of each file to be synchronized;
It is described identified according to the operation data in the listed files to be synchronized file to be synchronized the step of include:According to
It is identified according to the active degree information of each file to be synchronized;
Then
Wherein, PActive degreeFor the active degree information parameter of each file to be synchronized;PfRepresent certain in the active degree of file
The parameter of individual reference conditions, WfFor reference conditions parameter PfThe weight of relatively all reference conditions, f represent file active degree
In the condition number that needs to refer to.
Wherein, some reference conditions includes in the active degree of the file:It is more by editor's number, be opened number compared with
It is more, or be shared to more people.
Wherein, if the operation data type is the cumulative edit duration information of each file to be synchronized;
It is described identified according to the operation data in the listed files to be synchronized file to be synchronized the step of include:According to
It is identified according to the cumulative edit duration information of each file to be synchronized;
Then
Wherein, wherein, PCumulative edit durationFor the cumulative edit duration information parameter of file to be synchronized, PgWhen representing cumulative edit
The parameter of some reference conditions, W in long messagegFor reference conditions parameter PgThe weight of relatively all reference conditions, g represent tired
The condition number needed to refer in meter editor's duration.
Wherein, some reference conditions includes in the cumulative edit duration information:Add up editor-in-chief's duration of some file,
Add up some file by the total duration at editor interval, file is in the time of some period all teamworker's cumulative edits, or adds up
The total duration that some file is opened.
Wherein, according to first identification information, the step of being ranked up to the file to be synchronized, includes:
When the identification information of each file significance level to be synchronized represented by first identification information is weighted value,
Arranged according to weighted value descending.
The embodiment of the present invention additionally provides a kind of client, including:
Acquiring unit, for obtaining file to be synchronized;
Unit is identified, for according to the operation data operated to the file to be synchronized, identifying the text to be synchronized
Part, the first identification information corresponding to each file to be synchronized is obtained, first identification information is to represent each file weight to be synchronized
Want the identification information of degree;
Sequencing unit, for according to first identification information, being ranked up to the file to be synchronized.
Wherein, the client also includes:Statistic unit, the file to be synchronized is operated for counting and preserving
Operation data.
The embodiment of the present invention additionally provides a kind of terminal device, is provided with foregoing client.
The embodiment of the present invention additionally provides a kind of server end, including:
Acquiring unit, for obtaining file to be synchronized;
Statistic unit, for counting and preserving the operation data treated synchronous documents and operated;
Unit is identified, the file to be synchronized is identified according to the operation data, obtained corresponding to each file to be synchronized
First identification information, first identification information are the identification informations for representing each file significance level to be synchronized.
Sequencing unit, for according to first identification information, being ranked up to the file to be synchronized.
The embodiment of the present invention additionally provides a kind of server apparatus, is provided with foregoing server end.
As seen from the above technical solutions, the data processing method that is provided using the embodiment of the present invention, client, service
It device end and equipment, can identify which is vital document in file to be synchronized, and be carried out according to the significance level of file
Sequence so that vital document can both improve whole work efficiency by priority treatment, reduce the loss wind of vital document again
Danger.
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 describes, it is clear that described embodiment is only part of the embodiment of the present invention, rather than whole embodiments.It is based on
Embodiment in the present invention, those of ordinary skill in the art are obtained every other under the premise of creative work is not made
Embodiment, belong to the scope of protection of the invention.
Referring to Fig. 1, it is the schematic flow sheet of a data processing method according to embodiments of the present invention, and the present embodiment both may be used
Applied to client, server end can also be applied to, specifically included:
Step 101, file to be synchronized is obtained.
Here, the file under All Files of the file to be synchronized under assigned catalogue, such as the control of fast disk client
The file and file of middle form of ownership.For current device(Such as the hardware device such as PC, mobile device)For, when this refers to
Determine the file under catalogue inside any variation perhaps occurs in structure after, the file after the variation can be transferred to another equipment,
To ensure that the data under the assigned catalogue used in the user on all devices of the file after changing are 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(Assuming that the equipment is provided with client)The file content and file structure done
Modification, transmit upstream to server, and then downlink transfer is to the other equipment of user(The equipment is provided with client);Or will
User is in other equipment(The equipment is provided with client)The uplink done to server file content and file
The modification of structure, downlink transfer to current device, the transmission of this up-downgoing is to ensure the user in all devices (client
End) done to any file content and all modifications of file structure all in synchronous regime.
As one embodiment, if current device is fitted without client certainly, but some way and clothes can be passed through
Business device end keeps communication connection status, such as two-dimensional code scanning mode to establish interim connection, can also realize above-mentioned technical proposal.
For example, client determines that user enters destination folder by the interface of operating system(Such as store literary in Dropbox
File under the control of the file of part, i.e. client), and changed the information in the destination folder;For example, user exists
In file under Dropbox control, some newly-built file or folder, edit some file, change certain file or folder
Title or delete some file or folder, have changed file or folder attribute etc., then the text involved by the change
Part or file are all files to be synchronized.
When the present embodiment is applied to client, the file to be synchronized can be by client from local acquisition, can also be by
Client obtains from server, is to network by the advantages of client acquisition file, saves bandwidth;Accordingly, when this implementation
Example is when being applied to server end, and the file to be synchronized can be by server from local acquisition, can also be by server from client
The advantages of obtaining, file is obtained by server end is that server end as early as possible can be carried out the file to be synchronized of all access devices
Collect, it is more global and efficient to obtain file than client.The application is not limited the mode for obtaining file to be synchronized.
It is local file to be synchronized from what is locally obtained, what it is from server acquisition is with being treated together on all devices of server end access
Step file.
It should be noted that if desired, it may further include based on step 101, when the present embodiment is applied to client
, can be by client according to local file generated to be synchronized list to be synchronized during end(Most preferred embodiment), advantage is to join
Net, bandwidth is saved, it is more efficient to collect local file to be synchronized;The row to be synchronized generated can also be directly obtained from server
Table, relatively it is applied to the situation that server end counts file to be synchronized.That is, listed files to be synchronized can locally obtain from client
Take, or, obtained from server end.Similar, can be by server according to server when the present embodiment is applied to server
The file generated to be synchronized list to be synchronized of statistics is held, the list to be synchronized generated can also be directly obtained from client.By
The advantages of server end generation list to be synchronized is that server end as early as possible can be carried out the file to be synchronized of all access devices
Collect, it is more global and efficient to generate list to be synchronized than client;In a word, the application is not to generating list to be synchronized
Concrete mode limits.That is, listed files to be synchronized can obtain from client, or, locally obtained from server end.
The generation method of generation list to be synchronized is identical with prior art, and I will not elaborate.
Step 102, the operation data operated to the file to be synchronized is counted and preserves, according to the operation data
The file to be synchronized is identified, obtains the first identification information corresponding to each file to be synchronized, first identification information is table
Show the identification information of each file significance level to be synchronized.
Here, the identification information of each file significance level to be synchronized represented by the first identification information can be weighted value P,
Wherein, PxRepresent the type parameter of some operation data, WxRepresent operational data class shape parameter PxRelatively all behaviour
Make the weight of data type, x represents the number of type.
Aforesaid operations data type comprises at least one of or any combination:(1)Edited in predetermined amount of time
The frequency,(2)Important word information included in file name to be synchronized,(3)Multiple person cooperational processing information,(4)Browse text
Part information,(5)File variation information,(6)Be opened number information,(7)File attribute information,(8)Active degree information,
(9)Cumulative edit duration information.
Specifically, above-mentioned x value can be the arbitrary value in 1-9, when x values are 1, represent that above-mentioned weight is only joined
An operation data type is examined, certainly, the operation data type can be any one in above-mentioned 1-9, when x values are 2,
Represent that above-mentioned weight refers to two operation data types, certainly, two operation data types can be any in above-mentioned 1-9
Two, similar, x values represent to may be referred to any three operation data types in above-mentioned 1-9 for 3.
It should be noted that the identification information of each file significance level to be synchronized represented by above-mentioned first identification information
Can also be sequence number, precedence information etc., the application not performance to the identification information of each file significance level to be synchronized
Form limits, and any mode that can be used for representing significance level identification information can be applied in the application.
In order to make it easy to understand, the partial data of aforesaid operations data type is illustrated:
(1)Referred in predetermined amount of time by editor's frequency, time that some file to be synchronized is edited within some period
Number information, for example, being counted from current time, the number that some file is edited in nearest 2 hours;For example established again from this document
Time, this document was accumulative by editor's number so far.
(2)Important word information included in file name to be synchronized refers to, for example, include in file name " password ",
The important word of " agreement ", " I ", " important ", " user name ", " account book ", " evidence " etc, and these primary words are important
Degree, the number that these words occur etc..
(3)Multiple person cooperational processing information refers to, such as participates in the number of collaborative editing, participates in number that collaboration accesses, be more
Whether there is important relation people etc. in total degree that people edits, participant.
(4)Fileinfo is being browsed to refer to, such as the title of the file that is browsing of user, the file that browses
Press from both sides All Files list under path, the opening time for browsing file etc..
(5)After file variation information refers to, such as user edits file, this document varies by how many data.
(6)The number information that is opened refers to, such as user oneself opens the number of some file, or multiple person cooperational situation
Under, number summation that some file is opened by all teamworkers.
(7)File attribute information refers to, such as file extension, and whether file by user is arranged to vital document, file
Whether it is read-only, limits editorial staff, with password, if is arranged to cooperate file, filemodetime etc., passes through these
Attribute information shows the significance level of this file.
(8)Active degree information refers to, such as according to by editor's number is more, the number that is opened is more, is shared to more
People etc. calculates active degree.
(9)Cumulative edit duration information refers to, such as the time of user oneself cumulative edit since document creation, owns
The time of teamworker and user cumulative edit together, or file is in the time of some period all teamworker's cumulative edits
Deng.
On WxRepresent operational data class shape parameter PxThe weight of relatively all operation data types.Above-mentioned 9 operands
It is different according to contribution of the type for file significance level, such as(1)By editor's number than(2)The power of active degree information
Weight is higher, therefore by each WxDifferent weights is assigned to adjust each operational data class shape parameter to the important journey of file
The contribution of degree.
It should be noted that the application is not limited the type of operation data, operation data enumerated above
The embodiment that type is only possible to, the type of any operation data that can be used for judging significance level can be applied to
In the application.
Step 103, according to first identification information, the file to be synchronized is ranked up.
When the identification information of each file significance level to be synchronized represented by first identification information is weighted value,
It can be arranged according to weighted value descending.
Wherein, the mode being ranked up to the file to be synchronized can include following two modes:
Mode one:Mark is transmitted to each file to be synchronized, transmission sequence is obtained according to transmission mark result,
That is, putting in order for each file to be synchronized is constant, and the order of transmission is identified simply by mark, is treated together so as to realize
The sequence of step file.
Mode two:The position of each file to be synchronized is rearranged according to the order of transmission, according to each text to be synchronized
The position of part obtains transmission sequence.That is, by the high file arrangements to be synchronized of significance level above, each file to be synchronized
Sequence of positions is transmission sequence, so as to realize the sequence for treating synchronous documents.
Certainly, the application does not treat the sortords of synchronous documents and limited, and any possible sortord can
Applied in the application.
Below to above-mentioned formula(1)It is described in detail again.
It can be seen from explanation above, above-mentioned formula(1)In x be natural number, such as can be with value 1-9, it is possible to understand that:
When x values are equal to 1, because only considering a condition, the W in above-mentioned formulaxUsual value is 1, certainly, if
Need 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 values are not equal to 1, it is necessary to reference to multiple conditions, now, WxValue be typically not equal to 1, specifically, Wx
Value be to be determined according to the weight of each operation data type.
For example, x=3, and the data manipulation type referred to is(1)In predetermined amount of time by editor's frequency,(3)Multiple person cooperational
Processing information,(5)File variation information, then formula now(1)For:
W in above-mentioned formulaThe frequency、WMultiple person cooperational、WFile variationValue be different, for example, WThe frequencyValue 1.5, WMultiple person cooperationalValue
For 2, WFile variationValue is 1.
It is appreciated that in actual applications, the type of any operation data that can be referenced can apply the application
In, that is, x value can also be not limited to above-mentioned 1-9, can change with the change of operand type.When there is multiple operations
When data type is referenced, WxCan be positive number, negative or zero.Wherein WxIt is negative number representation, the weight of the parameter does not weigh very much
Will;WxIt is that the zero expression parameter this statistics does not have referential.Specifically, WxA kind of=0 situation is that client needs and taken
P is obtained after the link of business device endx, but can not be communicated within effective time with server end and obtain PxParameter, then by WxIt is entered as
0。
Below to x values be 1 when, it is various in the case of PxIllustrate respectively.
(1)If the operation data type is by editor's frequency information in predetermined amount of time;
It is described identified according to the operation data in the listed files to be synchronized file to be synchronized the step of include:According to
It is identified within a predetermined period of time by editor's frequency information according to file to be synchronized;
Then Px=PThe frequency;
The PThe frequencyFor the frequency parameter edited in predetermined amount of time.
Specifically, client server treats time that synchronous documents statistics is edited within a predetermined period of time in advance
Number, after client obtains list to be synchronized, obtain the number that file to be synchronized is edited within a predetermined period of time;Client or clothes
Business device end can also carry out the number edited in statistics predetermined amount of time to All Files in network disk file in advance, then be directed to
File in list to be synchronized, obtain by editor's number and calculate 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 arrangement according to weighted value P, according to be synchronized after rearrangement
Listed files is by the high file prioritised transmission of the frequency, to realize that these files can complete synchronization as early as possible before being edited in next time.When
So, according to the needs of practical application, WThe frequencyPositive number, negative or zero can be taken.
Above-mentioned preset time period can manually be set, such as manually set to the file to be synchronized in the T1-T2 periods
Editor's number counted;Above-mentioned preset time period can also be that system is voluntarily set, such as be opened into statistics from client
Time of origin ends, and the editor's number for during this period of time treating synchronous documents is counted, or, record and opened from client
The current time occurred to statistics ends editor's number in this period, but only to nearest a period of time in this period(Example
Such as nearest two hours)Editor's frequency counted.As most preferred embodiment, it is believed that this document is compiled since foundation
Volume number is more, and its significance level to user is bigger, therefore establishes this period so far from file, is optimal timing statisticses
Scope.
It should be noted that as most preferred embodiment, the above-mentioned statistics by editor's frequency information and client it is current whether
Network unrelated, this can continuously be counted by editor's frequency information, it is not necessary to be reset because of suspension.Certainly, reset after suspension,
It can realize to being recalculated by editor's frequency information.
(2)If the operation data type is the important word information included in each file name to be synchronized;It is described
The step of identifying the file to be synchronized in the listed files to be synchronized according to the operation data includes:According to each to be synchronized
Important word information included in file name is identified;
Then
Wherein, the PPrimary wordFor the primary word information parameter included in file name to be synchronized, PaFor some primary word
Parameter, WaFor the important word parameter PaThe weight of relatively all primary words, a are primary word number in file name to be synchronized.
Specifically, a kind of possible mode is to collect file name to be synchronized, the file name to be synchronized is carried out
Word segmentation processing, obtain some words(That is primary word), inquired about in the keywords database prestored, possessed in the keywords database
Each primary word title, corresponding each important word parameter PaAnd the weight W of the primary worda, then calculate it is each through participle at
The weight of word after reason, the weight of each word is added, and then obtains the weighted value P of file name to be synchronizedPrimary word。
For example, there is two files to be synchronized, one entitled " common cooperation agreement ", another is " important cooperation agreement ", then
Result after being segmented to two file names is respectively " common ", " cooperation " and " agreement ", with " important ", " cooperation " and " agreement ".Root
According to keyword database, the keyword 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 Pa4" common ", " cooperation ", " agreement " and " important " parameter, W are represented respectivelya1、Wa2、Wa3And Wa4, point
The weight of each parameter is not represented, and weighted value can be positive number, negative or zero.
It should be noted that above-mentioned keywords database can be set in advance, can also possess self-learning function, i.e. basis
The use habit of user is learnt and adjusted.Keywords database, which is put, 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.
(3)If the operation data type is the multiple person cooperational processing information of each file to be synchronized;
It is described identified according to the operation data in the listed files to be synchronized file to be synchronized the step of include:According to
It is identified according to the multiple person cooperational processing information of each file to be synchronized;
Then
Wherein, PMultiple person cooperationalFor the multiple person cooperational processing information parameter of file to be synchronized, PbRepresent that some in multiple person cooperational refers to
The parameter of condition, WbFor reference conditions parameter PbThe weight of relatively all reference conditions, b represent to need to refer in multiple person cooperational
Condition number.
Specifically, a kind of possible mode is to set the reference parameter of multiple person cooperational, obtained according to the weight of parameters
The weighted value of file to be synchronized.For example, set following three parameters i.e. b=3:Participate in the number of collaborative editing, participate in collaboration visit
Whether there is important relation people in the number asked, participant(Such as senior in office in company, important people is arranged to by the user
People, the people more with the users to share and the number that cooperates of member), then, for a file to be synchronized, its weighted value isWherein, Pb1、Wb1
To participate in the weight of the parameter of collaborative editing number and the parameter, Pb2、Wb2To participate in the parameter and the parameter of collaboration the number of visiting people
Weight, Pb3、Wb3Whether to have important relation people parameter and the weight of the parameter in participant.
It should be noted that three parameters of setting are only a possible embodiment above, the application is not right
Set number of parameters and content is defined, and concrete application can determine according to actual conditions.
(4)If the operation data type browses fileinfo for each file to be synchronized;
It is described identified according to the operation data in the listed files to be synchronized file to be synchronized the step of include:According to
It is identified according to the fileinfo that browses of each file to be synchronized;
Then
Wherein, PJust browse fileFileinfo parameter, P are browsed for file to be synchronizedcExpression browses certain in file
The parameter of individual reference conditions, WcFor reference conditions parameter PcThe weight of relatively all reference conditions, c represent to browse file
In the condition number that needs to refer to.
PcReference conditions can be the title for the file that user is browsing, own under the folder path that browses
Listed files, the opening duration for browsing file etc..
Specifically, a kind of possible path for being achieved in that, obtaining file where currently browsing file, judges
Whether this document folder is the root folder for storing file in Dropbox, if it is not, this document then is pressed from both sides into lower All Files all assigns the
One weight, the file to be synchronized under non-this document is pressed from both sides all assign the second weight, wherein, the first weight is more than the second weight;If
Be, then it is without any processing.So, the file that can currently browsing obtains higher weight.For example, root folder
For E:Fast disk, the file currently browsed is in " E:Fast disk file " in the case of, then by " E:Fast disk file " in
All files to be synchronized all assign as the first weight such as 10, by non-" E:Fast disk file " in file to be synchronized all assign
For the second weight such as 5.Certainly, above-mentioned second weight can also be equal to zero or negative, now, current just equivalent to only consideration
The file where the file browsed.
It is because of if worked as it should be noted that why to determine whether to store the root folder of file in Dropbox
The preceding file browsed is in root folder, then needs all to assign file all in root folder to the first weight, this
All file weights to be synchronized of sample are actual all the same, lost the meaning of weight.Only in the text currently just browsed
When part is in non-root folder, different priorities can be distinguished by foregoing different weight.So, can cause current
All Files under file where browsing file obtains priority synchronization.
Alternatively possible is achieved in that, obtains current file where browsing file in list to be synchronized, only
First grade file during this document is pressed from both sides assigns the first weight, i.e. file in this document folder in sub-folder no longer carries out any place
Reason.So, the first grade file under file where currently browsing file can be caused to obtain priority synchronization.
(5)If the operation data type is the file variation information of each file to be synchronized;
It is described identified according to the operation data in the listed files to be synchronized file to be synchronized the step of include:According to
It is identified according to the file variation information of each file to be synchronized;
Then Px=PFile variation;
Wherein, the PFile variationFor the file variation information parameter of file to be synchronized.
Specifically, a kind of possible modification amount for being achieved in that, counting each file to be synchronized, according to the big of modification amount
It is small to assign different weights, wherein, modification amount is smaller, and weight is higher, and modification amount is bigger, and weight is smaller.For example, a file is repaiied
Changed two words, another file adds the content of a paragragh, then, have modified two words file be endowed it is higher
Weight, another file will be endowed relatively low weight.The small file of prioritised transmission modification amount.
(6)If the operation data type is the number information that is opened of each file to be synchronized;
It is described identified according to the operation data in the listed files to be synchronized file to be synchronized the step of include:According to
It is identified according to the number information that is opened of each file to be synchronized;
Then
Wherein, the PBe opened numberIt is opened number information parameter for the file of file to be synchronized.PdRepresent that file is opened
The parameter of some reference conditions, W in numberdFor reference conditions parameter PdThe weight of relatively all reference conditions, d represent file
Be opened the condition number needed to refer in number.PdReference conditions can be number that user oneself opens some file,
Or in the case of multiple person cooperational, number summation that some file is opened by all teamworkers etc..
It is achieved in that specifically, one kind is possible, counts and obtain the number that file to be synchronized is opened, is opened secondary
The more file of number is endowed higher weight, to ensure that the file being opened often is having the preferentially transmitted, to realize these files
Synchronization can be completed before being opened in next time as early as possible.Certainly, according to the needs of practical application, WBe opened numberPositive number, negative can be taken
Or zero.
Alternatively possible is achieved in that, sets the reference parameter for the number that is opened, is treated according to the weight of parameters
The weighted value of synchronous documents.For example, set following three parameters:Identical file opens number simultaneously by different teamworkers, more people assist
Make the situation total number of persons that similarly hereinafter a file is opened by all teamworkers, open important relation people's number in people(Such as position in company
Higher people, the people of important persons, people more with the users to share and the number that cooperates etc. are arranged to by the user), i.e. d=3, that
, for a file to be synchronized,
Wherein, Pd1、Wd1For identical file number parameter and the weight of the parameter, P are opened by different teamworkers simultaneouslyd2、Wd2For same text
Part is opened total number of persons parameter and the weight of the parameter, Pd3、Wd3Open the power of important relation people's number parameter and the parameter in people
Weight.
It should be noted that three parameters of setting are only a possible embodiment above, the application is not right
Set number of parameters and content is defined, and concrete application can determine according to actual conditions.
(7)If the operation data type is the file attribute information of each file to be synchronized;
It is described identified according to the operation data in the listed files to be synchronized file to be synchronized the step of include:According to
It is identified according to the file attribute information of each file to be synchronized;
Then
Wherein, PFile attributeFor the file attribute information parameter of file to be synchronized, PeRepresent that some in file attribute information is joined
Examine the parameter of condition, WeFor reference conditions parameter PeThe weight of relatively all reference conditions, e represent to need in file attribute information
The condition number to be referred to.File attribute information as reference conditions includes:Whether file extension, file are set by user
For vital document, whether file is read-only, limits editorial staff, with password, if is arranged to the file that cooperates, file modification
Time, User Defined parameter, the file counted according to user's use habit are accessed number etc., pass through these attribute informations
To show the significance level of this file.
Specifically, a kind of possible reference parameter for being achieved in that, setting file attribute information, according to parameters
Weight obtains the weighted value of file to be synchronized.For example, set following two parameters:User Defined parameter, made according to user
The file gone out with habit statistical is accessed number, i.e. e=2, then, for a file to be synchronized,Wherein, Pe1、We1For User Defined parameter and it is somebody's turn to do
The weight of parameter, Pe2、We2File to be counted according to user's use habit is accessed count parameter and the weight of the parameter.
Specifically, file extension is a kind of mechanism that operating system is used for logo file form.Can be with using extension name
Distinguish different file types.When extending entitled temporary file, garbage files, severity level is minimum, and generally we are by WeTake
It is worth negative, the file significance level that the extension name is identified reduces.
Specifically, file is the file that some application program stores temporary file or garbage files, this document folder
And the file under this document folder, its corresponding WeValue negative so that weight is negative value, and file significance level drops significantly
It is low.
Specifically, file is some application program mark be more people's Shared Folders situation, this document folder and place
File under this document folder, its corresponding WeValue positive number, weight rise, file significance level rise.
(8)If the operation data type is the active degree information of each file to be synchronized;
It is described identified according to the operation data in the listed files to be synchronized file to be synchronized the step of include:According to
It is identified according to the active degree information of each file to be synchronized;
Then
Wherein, PActive degreeFor the active degree information parameter of each file to be synchronized.PfRepresent certain in the active degree of file
The parameter of individual reference conditions, WfFor reference conditions parameter PfThe weight of relatively all reference conditions, f represent file active degree
In the condition number that needs to refer to.Wherein PfCan be edited number, the number that is opened, be shared to more people etc. refer to because
Element.
Specifically, a kind of possible reference parameter for being achieved in that, setting active degree information, according to parameters
Weight obtains the weighted value of file to be synchronized.For example, set following two parameters:It is currently at treating together for screen display state
Step file, the more file to be synchronized of the number that is opened, i.e. f=2, then, for a file to be synchronized,Wherein, Pf1、Wf1To be currently at treating for screen display state
The weight of synchronous documents parameter and the parameter, Pf2、Wf2For the more file parameters to be synchronized of the number that is opened and the power of the parameter
Weight.So, the high file of active degree can be allowed by priority synchronization.
(9)If the operation data type is the cumulative edit duration information of each file to be synchronized;
It is described identified according to the operation data in the listed files to be synchronized file to be synchronized the step of include:According to
It is identified according to the cumulative edit duration information of each file to be synchronized;
Then
Wherein, wherein, PCumulative edit durationFor the cumulative edit duration information parameter of file to be synchronized, PgWhen representing cumulative edit
The parameter of some reference conditions, W in long messagegFor reference conditions parameter PgThe weight of relatively all reference conditions, g represent tired
The condition number needed to refer in meter editor's duration.Reference conditions as cumulative edit duration information include:User oneself is certainly
The time of cumulative edit is the editor-in-chief's duration for adding up some file since document creation, and all teamworkers and user add up together
The time of editor is to add up some file by the total duration at editor interval, or file in some period all teamworkers to be added up
The time of editor, or add up total duration that some file is opened etc..
Specifically, a kind of possible reference parameter for being achieved in that, setting cumulative edit duration information, according to each ginseng
Several weights obtains the weighted value of file to be synchronized.For example, set following three parameters:When adding up the editor-in-chief of some file
It is long, add up the total duration that some file is opened by the total duration at editor interval, some accumulative file, i.e. g=3, then, for
For one file to be synchronized,
Wherein, Pg1、It is tired
Count editor-in-chief's duration parameters of some file and the weight of the parameter, Pg2、Wg2For add up some file by editor interval it is total when
The weight of long parameter and the parameter, Pg3、Wg3The total duration parameter and the weight of the parameter being opened for some accumulative file.
It should be noted that three parameters of setting are only a possible embodiment above, the application is not right
Set number of parameters and content is defined, and concrete application can determine according to actual conditions.
Can it can be seen that the data processing method provided using the embodiment of the present invention, which identify in file to be synchronized
It is vital document, and is ranked up according to the significance level of file so that vital document can be both improved by priority treatment
Whole work efficiency, again reduce the loss risk of vital document.
It should be noted that if embodiment illustrated in fig. 1 is applied to client, obtains in step 102 and treated together to described
The mode for the operation data that step file is operated includes:Locally obtained from client, or, obtained from server end;If
Embodiment illustrated in fig. 1 is applied to server end, then the operation data operated to the file to be synchronized is obtained in step 102
Mode include:Locally obtained from server end, or, obtained from client.
It should be noted that for foregoing all embodiments, can also include:Treated together according to the file generated to be synchronized
List is walked, further, treats that list to be synchronized performs the process that file synchronization operates according to described.
It should be noted that during file synchronization is performed, can also timing or real-time update list to be synchronized;
After the completion of currently synchronous file synchronization operation, simultaneously operating is performed according to the list to be synchronized after the renewal.
So, it can more timely ensure that vital document by priority synchronization, further increases whole work efficiency, reduce
The loss risk of vital document.It is current newest to be additionally, since performed list to be synchronized, can also avoid transmitting
The file uploaded is needed after uploading in the original plan and no longer, Internet resources can be saved.
It should be noted that for aforementioned synchronization embodiment, if network interruption in synchronizing process, can also wrap
Include:The list to be synchronized being being currently used is preserved, and records synchronous documents, after network reconnect, is treated according to described in
Synchronous list, simultaneously operating is continued executing with to not synchronous file.
So, it is possible to reduce the number of inter-net communication, reduce network load, further save Internet resources, improve whole
Body synchronous efficiency.
It should be noted that in the application, do not limited for the subsequent applications of the file to be synchronized after sequence, the above
Described synchronous documents execution simultaneously operating for the treatment of is a kind of possible subsequent applications, and any possible subsequent applications can
File to be synchronized after the sequence provided using the application.
The application is applied to a specific embodiment of field of synchronization:A kind of method of file synchronization is provided, including:
Listed files to be synchronized is obtained, file to be synchronized is included in the list to be synchronized;
The operation data operated to the file to be synchronized is counted and preserves, according to operation data mark
File to be synchronized in listed files to be synchronized, obtain the first identification information corresponding to each file to be synchronized, first mark
It is to represent the weighted value of each file significance level to be synchronized to know information;
According to first identification information, each file to be synchronized in the list to be synchronized is ranked up, obtained each
The transmission sequence of individual file to be synchronized;
According to the transmission sequence of each file to be synchronized in the list to be synchronized, file synchronization operation is performed.
It is together to be performed to realize by client and server end to perform file synchronization operation.
Here, if according to each file to be synchronized in the list to be synchronized transmission sequence, perform file synchronization behaviour
Make for client, then obtaining the mode of the operation data operated to the file to be synchronized includes:It is local from client
Obtain, or, obtained from server end.
If according to the transmission sequence of each file to be synchronized in the list to be synchronized, execution file synchronization operation is
Server end, then obtaining the mode of the operation data operated to the file to be synchronized includes:Locally obtained from server end
Take, or, obtained from client.
Present invention also provides a kind of client, referring to Fig. 2, including:
Acquiring unit 201, for obtaining file to be synchronized;
Unit 202 is identified, for described to be synchronized according to the operation data operated to the file to be synchronized, mark
File, the first identification information corresponding to each file to be synchronized is obtained, first identification information is to represent each file to be synchronized
The identification information of significance level;
Sequencing unit 203, for according to first identification information, being ranked up to the file to be synchronized.
Above-mentioned client can also include:
Statistic unit(Figure does not regard), for counting and preserving the operation data operated to the file to be synchronized.
Present invention also provides a kind of terminal device, and it is provided with client as described above.
Can the client and terminal device provided using the embodiment of the present invention, which identify in file to be synchronized
It is vital document, and is ranked up according to the significance level of file so that vital document can be both improved by priority treatment
Whole work efficiency, the loss risk of vital document is reduced again.
Present invention also provides a kind of server end, referring to Fig. 3, including:
Acquiring unit 301, for obtaining file to be synchronized;
Statistic unit 302, for counting and preserving the operation data treated synchronous documents and operated;
Unit 303 is identified, the file to be synchronized is identified according to the operation data, it is corresponding to obtain each file to be synchronized
The first identification information, first identification information is the identification information for representing each file significance level to be synchronized.
Sequencing unit 304, for according to first identification information, being ranked up to the file to be synchronized.
Present invention also provides a kind of server apparatus, and it is provided with server end as described above.
The server end and server apparatus provided using the embodiment of the present invention, can be identified in file to be synchronized
Which is vital document, and is ranked up according to the significance level of file so that vital document can both be carried by priority treatment
High whole work efficiency, the loss risk of vital document is reduced again.
A specific embodiment based on aforementioned synchronization field, present invention also provides a kind of client, referring to Fig. 4, institute
Stating client includes:
List obtaining unit 401, for obtaining listed files to be synchronized, file to be synchronized is included in the list to be synchronized;
Unit 402 is identified, for described to be synchronized according to the operation data operated to the file to be synchronized, mark
File to be synchronized in listed files, obtain the first identification information corresponding to each file to be synchronized, first identification information
It is the weighted value for representing each file significance level to be synchronized;
Transmission sequence obtaining unit 403, for obtaining the transmission sequence of each file to be synchronized, the transmission sequence is basis
Each file to be synchronized is ranked up acquisition in list to be synchronized described in first identification information pair;
Synchronization unit 404, for the transmission sequence according to each file to be synchronized in the list to be synchronized, perform file
Simultaneously operating.
Above-mentioned client can also include:
Statistic unit(Figure does not regard), for counting and preserving the operation data treated synchronous documents and operated.
Above-mentioned client can also include:
Sequencing unit(Figure does not regard), for according to first identification information, being treated together to each in the list to be synchronized
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 according to the list to be synchronized, during performing file synchronization operation, determining
When or real-time update list to be synchronized;
The synchronization unit(Figure does not regard), it is additionally operable to after the completion of currently synchronous file synchronization operation, according to institute
State the list to be synchronized after renewal and perform simultaneously operating.
Above-mentioned client can also include:
Interruption logging unit(Figure does not regard), for during network interruption, preserving treating of being being currently used in synchronizing process
Synchronous list, and record synchronous documents;
The synchronization unit(Figure does not regard), it is additionally operable to after network reconnects, according to the 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 device, is provided with foregoing client.
The client and terminal device provided using the embodiment of the present invention so that vital document was both carried by priority synchronization
High whole work efficiency, the loss risk of vital document is reduced again.It is current to be additionally, since performed list to be synchronized
Newest, the file uploaded is needed after transmission can also be avoided to upload in the original plan and no longer, Internet resources have been saved, with this
Meanwhile it can more timely ensure that vital document by priority synchronization, further increases whole work efficiency, reduces important text
The loss risk of part.Further, can be according to the list to be synchronized recorded to not synchronization after connection again of breaking in a network
File continues executing with simultaneously operating, reduces the number of inter-net communication, reduces network load, further saves Internet resources,
Improve Integral synchronous efficiency.
A specific embodiment based on aforementioned synchronization field, the embodiment of the present invention additionally provide a kind of server end, ginseng
See Fig. 5, the server end includes:
List obtains single 501, and for obtaining listed files to be synchronized, file to be synchronized is included in the list to be synchronized;
Statistic unit 502, for counting and preserving the operation data treated synchronous documents and operated;
Unit 503 is identified, is treated in the listed files to be synchronized for identifying client generation according to the operation data
Synchronous documents, obtain the first identification information corresponding to each file to be synchronized, and first identification information is to represent each to treat together
The weighted value of step file significance level;
Synchronization unit 504, for the transmission sequence according to each file to be synchronized in the list to be synchronized, perform file
Simultaneously operating.
Above-mentioned server end can also include:
Sequencing unit(Figure does not regard), for according to first identification information, being treated together to each in the list to be synchronized
Step file is ranked up, and obtains ranking results, is operated so that the synchronization unit performs file synchronization according to ranking results.
Above-mentioned server end can also include:
Updating block(Figure does not regard), for according to the list to be synchronized, during performing file synchronization operation, determining
When or real-time update list to be synchronized;
The synchronization unit, it is additionally operable to after the completion of currently synchronous file synchronization operation, after the renewal
List to be synchronized perform simultaneously operating.
Above-mentioned server end can also include:
Interruption logging unit(Figure does not regard), for during network interruption, preserving treating of being being currently used in synchronizing process
Synchronous list, and record synchronous documents;
The synchronization unit, it is additionally operable to after network reconnects, according to the 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 foregoing server end.
The server end and server apparatus provided using the embodiment of the present invention so that vital document by priority synchronization,
Both whole work efficiency is improved, reduces the loss risk of vital document again.Being additionally, since performed list to be synchronized is
It is current newest, the file uploaded is needed after transmission can also be avoided to upload in the original plan and no longer, has saved Internet resources, with
This can more timely ensure that vital document by priority synchronization, further increases whole work efficiency, reduced important simultaneously
The loss risk of file.Further, can be according to the list to be synchronized recorded to not synchronous after connection again of breaking in a network
File continue executing with simultaneously operating, reduce the number of inter-net communication, reduce network load, further save network money
Source, improve Integral synchronous efficiency.
For device related embodiment, because it is substantially similar to preceding method embodiment, so the comparison of description
Simply, the relevent part can refer to the partial explaination of embodiments of method.
For convenience of description, it is to be divided into various units with function to describe respectively to describe said apparatus and smart machine.When
So, the function of each unit can be realized in same or multiple softwares and/or hardware when implementing of the invention.
As seen through the above description of the embodiments, those skilled in the art can be understood that the present invention can
Realized by the mode of software plus required general hardware platform.Based on such understanding, technical scheme essence
On the part that is contributed in other words to prior art can be embodied in the form of software product, the computer software product
It can be stored in storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions are causing a computer equipment
(Can be personal computer, server, or network equipment etc.)Perform some of each embodiment or embodiment of the invention
Method described in part.
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 make a distinction with another entity or operation, and not necessarily require or imply and deposited between these entities or operation
In any this actual relation or order.Moreover, term " comprising ", "comprising" or its any other variant are intended to
Nonexcludability includes, so that process, method, article or equipment including a series of elements not only will including those
Element, but also the other element including being not expressly set out, or it is this process, method, article or equipment also to include
Intrinsic key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that
Other identical element also be present in process, method, article or equipment including the key element.
The present invention can be used in numerous general or special purpose computing system environments or configuration.Such as: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, minicom, mainframe computer including any of the above system or equipment
DCE etc..
The present invention can be described in the general context of computer executable instructions, such as program
Module.Usually, program module includes performing particular task or realizes routine, program, object, the group of particular abstract data type
Part, data structure etc..The present invention can also be put into practice in a distributed computing environment, in these DCEs, by
Task is performed and connected remote processing devices by communication network.In a distributed computing environment, program module can be with
In the local and remote computer-readable storage medium including storage device.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the scope of the present invention.It is all this
Any modification, equivalent substitution and improvements made within the spirit and principle of invention etc., are all contained in protection scope of the present invention.