A kind of buffer memory method for synchronous and system of netting dishTechnical field
The invention belongs to net dish simultaneous techniques field, be specifically related to a kind of buffer memory method for synchronous and system of netting dish.
Background technology
The net dish claims again Network U plate, network hard disc, is the online storage service that some network companies release.To the user provide file storage, access, backup, the file management facilities such as share, very convenient to use.The portable hard drive of not spending.The user can regard the net dish as hard disk or a USB flash disk that is placed on the network, no matter you be at home, unit or other Anywhere, as long as you are connected to the Internet, you just can manage, edit the file in the net dish.Do not need to carry, more be not afraid of and lose.
The cloud computing storing technology of more recent application, for net dish industry has been brought new revolution, traditional net dish will progressively be replaced by the cloud storage.The cloud storage is the data center that is structured on the high speed distributed storage network, it gathers collaborative work with a large amount of dissimilar memory devices in the network by application software, form the system of the data storage and access of a safety, be applicable to a series of demands such as data information storage, backup, filing of each large, medium and small enterprise and personal user.Cloud storage sharpest edges are single storage products is converted to data storage and service, and under this technology, net dish industry may as financial industry bank, derive how value-added service on single stores service basis.
Produced " Synchronization Network dish " under above background, coiled soon such as Kingsoft, it possesses file synchronization, file backup and file-sharing function.As long as the client of Synchronization Network dish has been installed, can both direct cross-platform interconnection between computer, mobile phone, flat board, the website, cast off USB flash disk, portable hard drive and data line once and for all.
Concrete system chart, as shown in Figure 1, this system comprises cloud server and each terminal device that is connected with cloud server, described terminal device comprises PC, mobile phone, IPAD etc., and fast dish client software is installed in each terminal device.After fast dish client is installed, can lose any file into specified folder, other are equipped with in Windows computer, Mac computers, Android mobile phone, iPhone, iPad even the fast official website of coiling of fast dish client then will to be synchronized to this user.But also some file or folder that the specified file underedge can be set shares to the good friend, and the user is placed on the file in these files so later on, and any change is arranged, and the good friend can both see latest edition immediately.The user also can enter at any time cloud server and check All Files in the fast dish.Utilize the sharing functionality of fast dish to realize: a people has revised document at own computer, other people can see at other computer immediately, later on office just again need not repeatedly be checked, revise certain frequent document of revising, different versions pass, share file and also need not to copy computer to data line to team, then pack, send out the troublesome operation such as mail.
Yet, when the data volume in the cloud server arrives greatly to a certain degree, just can't be synchronized to each user terminal, because the memory data output of user terminal is very limited.Be applied to enterprises such as the cloud stores service, the business data of magnanimity is stored on the server, for the limited subscriber terminal equipment of memory capacity, file on traditional synchronization mechanism meeting server downloads, but local not so large memory capacity, so can't obtaining real cloud storage, the user experiences: mass memory, namely namely see.
Therefore, in order to address the above problem, more existing cloud stores service have just been taked the synchronous method of selectivity, namely are that partial document is synchronized to user terminal.At this moment, the user can't know the alternative document situation on the cloud server, thereby make troubles and some potential risks to the client.
Summary of the invention
The problem of All Files situation on the cloud server be can't know in order to solve user terminal finite capacity in the existing Synchronization Network disc system, a kind of new net dish method for synchronous and system the object of the present invention is to provide.
In order to realize the foregoing invention purpose, the technical solution used in the present invention is as follows:
A kind of buffer memory method for synchronous of netting dish may further comprise the steps:
From cloud server, download part or all files default file cache district to the user terminal according to user instruction or preset rules;
Obtain the attribute information of each file of storing in the cloud server, and the attribute information of All Files transferred on the user terminal interface show;
Receive the instruction of checking of each file of showing on the user to user terminal interface, check that instruction is searched whether have corresponding file in described file cache district according to described;
If exist, then directly open file and check for the user;
If do not exist, then from cloud server, download corresponding file to buffer area according to the attribute information of described file, and open file and check for the user.
Further, according to described check instruction in described file cache district, search whether have corresponding file after, and directly open file check for the user before, further comprising the steps of:
The version information of described file is uploaded to judges in the cloud server whether described file is latest edition;
If then carry out the described step that directly opens file and check for the user;
If not, then from cloud server, download the latest edition of this document to described file cache district.
Further, the size in described file cache district arranges size for default size or according to user instruction, after the file of the storage in the buffer area reaches described size threshold value, then according to default redundant rule elimination alternative document to store new file.
Further, when opening described file and check for the user, may further comprise the steps:
Obtain the file layout of described file;
In system, search whether there be the associated program corresponding with it according to described file layout;
If exist, then call described associated program and open this document;
As not existing, then default information is sent to user interface and shows.
Further, the concrete display mode of described attribute information on user terminal is the tabulation display mode.
A kind of buffer memory synchro system of netting dish comprises with lower module:
The cache file download module is used for downloading part or all files default file cache district to the user terminal according to user instruction or preset rules from cloud server;
The file attribute download module is used for obtaining the attribute information of each file that cloud server stores, and the attribute information of All Files transferred on the user terminal interface shows;
The ff module be used for to receive the instruction of checking of each file of showing on the user to user terminal interface, checks that instruction is searched whether have corresponding file in described file cache district according to described; If exist, then execute file is checked module; If do not exist, then carry out the subsequent file download module;
The Fileview module is used for directly opening file and checks for the user;
The subsequent file download module is used for downloading corresponding file to buffer area according to the attribute information of described file from cloud server, and opens file and check for the user.
Further, this system also comprises the file update module, be used for checking that according to described instruction is after the file that whether has correspondence is searched in described file cache district in described ff module, and described Fileview module directly open file check for the user before, the version information of described file is uploaded to judges in the cloud server whether described file is latest edition; If then carry out described Fileview module; If not, then from cloud server, download the latest edition of this document to described file cache district.
Further, the size in described file cache district arranges size for default size or according to user instruction, after the file of the storage in the buffer area reaches described size threshold value, then according to default redundant rule elimination alternative document to store new file.
Further, this system also comprises the file layout matching module, is used for obtaining the file layout of described file when opening described file and check for the user, searches whether there be the associated program corresponding with it according to described file layout in system; If exist, then call described associated program and open this document; As not existing, then default information is sent to user interface and shows.
Further, the concrete display mode of described attribute information on user terminal is the tabulation display mode.
The present invention transfers to the attribute information of the All Files stored in the cloud server on the user terminal interface and shows, by showing All Files situation on the cloud server with respect to the little a lot of file attribute data of file content to the user, so that the user can view the mass file of storing on the server; The present invention has been downloaded to local file as buffer memory by the foundation of buffer area for some, and the user clicks when using and need not to wait for downloads, and experiencing can be better.Simultaneously, when user's deviated from network environment, to these files that has had buffer memory in this locality, also can check.
Description of drawings
The picture that this description of drawings provides is used for assisting a further understanding of the present invention, consists of the application's a part, does not consist of to improper restriction of the present invention, in the accompanying drawings:
Fig. 1 is the structured flowchart of existing Synchronization Network dish;
Fig. 2 is basic flow sheet corresponding to the embodiment of the invention 1 method;
Fig. 3 is the described basic system chart of Fig. 2 method;
Fig. 4 is the process flow diagram that increases part on the embodiment 1 method basis of the embodiment of theinvention 2;
Fig. 5 is the system chart of the embodiment of theinvention 2 correspondences;
Fig. 6 is process flow diagrams corresponding to the embodiment of theinvention 3 methods;
Fig. 7 is the system chart of the correspondence of theinvention process 3.
Embodiment
Embodiment 1
As shown in Figure 2, present embodiment discloses a kind of buffer memory method for synchronous of netting dish, may further comprise the steps:
Step1: from cloud server, download part or all files default file cache district to the user terminal according to user instruction or preset rules; The purpose of this step delimited a file cache district in local client, according to the size of this buffer area, download part or all files from cloud server; When the file of storing in the cloud server is little when equaling this buffer area, can all download, can certainly selectivity download part; When the file of the storage in the cloud server during greater than this buffer area, just can only download partial document to buffer area; In this step as for user instruction and default rule, select exactly and select standard or the condition that need to be downloaded to file cache district File, can select the file that needs are downloaded to the file cache district according to user's individual demand, also can be according to default regular download file.Formulated different buffer areas and downloaded condition according to individual's the work different times that do not coexist such as: user, by such as: preset the file within three days be downloaded to buffer area for the user, again such as the frequency that is used in the server beyond the clouds according to file, the file that usage frequency is high is downloaded to buffer area etc., these are not the emphasis of this step, the purpose of this step just is buffer memory partial document in the limited storage space of user terminal, to be user-friendly to;
Step2: obtain the attribute information of each file of storing in the cloud server, and the attribute information of All Files transferred on the user terminal interface show; Comprise in the described attribute information that filename, file size, file number of words, file number of pages, creation-time, access time, modification time, Document Editing T.T., file unit, author, reviser and file store path etc. are used for the information of indicator file except file content, the disk space that these information are relative and file content need to take can be little a lot, and user terminal generally is to have enough spaces to hold these information; This step is by showing All Files situation on the cloud server with respect to the little a lot of file attribute data of file content to the user, so that the user can view the mass file of storing on the server;
Step3: receive the instruction of checking of each file of showing on the user to user terminal interface, check that instruction is searched whether have corresponding file in described file cache district according to described; Owing to the attribute information of All Files has all been downloaded to Local User Terminal in the second step (Step2), so only need to just can search all files as index list with it; Certainly, to raise the efficiency in order saving time, in the local cache district, to search first corresponding file, find directly it is checked for the user;
Step4A: if exist, then directly open file and check for the user;
Step4B: if do not exist, then from cloud server, download corresponding file to buffer area according to the attribute information of described file, and open file and check for the user.This step is user when wanting viewing files not in described file cache district, the step of just carrying out, the chained address that the corresponding file of attribute that can a file when specifically carrying out is downloaded.
As shown in Figure 3, present embodiment also discloses the buffer memory synchro system of the fully corresponding net dish of a kind of and preceding method, comprises with lower module:
Cache file download module 1 is used for downloading part or all files default file cache district to the user terminal according to user instruction or preset rules from cloud server;
Fileattribute download module 2 is used for obtaining the attribute information of each file that cloud server stores, and the attribute information of All Files transferred on the user terminal interface shows;
Ff module 3 be used for to receive the instruction of checking of each file of showing on the user to user terminal interface, checks that instruction is searched whether have corresponding file in described file cache district according to described; If exist, then execute file is checked module; If do not exist, then carry out the subsequent file download module;
Fileview module 4 is used for directly opening file and checks for the user;
Subsequentfile download module 5 is used for downloading corresponding file to buffer area according to the attribute information of described file from cloud server and checks for the user.
Wherein, in order to be user-friendly to and to guarantee file update, the size in described file cache district arranges size for default size or according to user instruction, after the file of the storage in the buffer area reaches described size threshold value, then according to default redundant rule elimination alternative document to store new file.Such as set a default value according to the hard-disk capacity of user terminal, default value can be regulated according to user's hard-disk capacity and free space size.For example the hard disk of user 1T has the 500G free space, can set the buffer area of 10G; If only have the 100G free space, the buffer area of meeting automatic setting 2G.Certainly, buffer memory capacity allows the user independently to change setting simultaneously.The rule of so-called budget, such as: the rule of first in first out taked, in case when reaching the threshold value of setting, cover file of the earliest download etc. with up-to-date file.
Wherein, check to make things convenient for the user that the concrete display mode of described attribute information on user terminal is the tabulation display mode.
Certainly, control in real time download progress for the ease of the user, when downloading corresponding file, can also comprise obtaining described file download progress data and it being presented on the user terminal interface etc. some and improve the step of Man machine interactions.
Present embodiment will transfer on the user terminal interface with respect to the attribute information of the little a lot of All Files of file content and show, so that the user can view the mass file of storing on the server, be convenient to the user and understand All Files and latest update situation thereof in the cloud server.Simultaneously, present embodiment has been downloaded to local file as buffer memory by the foundation of buffer area for some, and the user clicks when using and need not to wait for downloads, and experiencing can be better.Simultaneously, when user's deviated from network environment, to these files that has had buffer memory in this locality, also can check.
Therefore, present embodiment is under the limited storage space condition restriction of Local User Terminal, not only can view the mass file of storing on the server, but also satisfied to the full extent the needs that the user checks fast by the foundation of buffer area, and then promoted user's experience effect of present embodiment.
Embodiment 2
As shown in Figure 4, present embodiment discloses a kind of buffer memory method for synchronous of netting dish, except comprising embodiment 1 disclosed method step, present embodiment is from the different of embodiment 1, in order to further facilitate user's viewing files, find described file or download after the corresponding file in buffer area, when opening described file and check for the user, present embodiment has increased following steps on the basis of embodiment 1:
Step51: obtain the file layout of described file, this document form comprises document format (doc, xls, ppt, txt etc.), picture format (jpg, png, bmp, psd, ai etc.) etc.;
Step52: search in system according to described file layout whether to have the associated program corresponding with it, so-called associated program be exactly the program of editing and checking this document; Be the formatted file of doc such as suffix, its associated program is exactly word; Be the formatted file of xls such as suffix again, its relative program is exactly Excle;
Step53A: if exist, then call described associated program and open this document;
Step53B: as not existing, then default information is sent to the user terminal interface display, such as: there is not corresponding associated program in system, can't open, and recommends to check what software is, download address etc.
As shown in Figure 5, present embodiment also discloses a kind of system corresponding with the present embodiment method, except the module that embodiment 1 open system comprises, present embodiment has also increased a file layout matching module 6, be used for when opening described file and check for the user, obtain the file layout of described file, in system, search whether there be the associated program corresponding with it according to described file layout; If exist, then call described associated program and open this document; As not existing, then default information is sent to user interface and shows.
Embodiment 3:
As shown in Figure 6, present embodiment discloses a kind of buffer memory method for synchronous of netting dish, except comprising embodiment 1 disclosed method step, present embodiment is from the different of embodiment 1: the file that can view latest edition in order to ensure the user, according to described check instruction in described file cache district, search whether have corresponding file after, and directly open file check for the user before, namely be between Step3 and Step4A, further comprising the steps of:
Step5: the version information of described file is uploaded to judges in the cloud server whether described file is latest edition; If then carry out the Step4A step; If not, then carry out the Step6 step;
Step6: from cloud server, download the latest edition of this document to described file cache district.
As shown in Figure 7, present embodiment also discloses a kind of system corresponding with the present embodiment method, except the module that embodiment 1 open system comprises, present embodiment has also increased a file update module 7, be used for checking that according to described instruction is after the file that whether has correspondence is searched in described file cache district in described ff module, and described Fileview module directly open file check for the user before, the version information of described file is uploaded to judges in the cloud server whether described file is latest edition; If then carry out described Fileview module; If not, then from cloud server, download the latest edition of this document to described file cache district.
More than describe preferred embodiment of the present invention in detail, the ordinary skill that should be appreciated that this area need not creative work and just can design according to the present invention make many modifications and variations.Therefore, all in the art technician according to the present invention design on the prior art basis by logic analysis, reasoning or according to the available technical scheme of limited experiment, all should be among the determined protection domain by these claims.