CN104969532B - A kind of method and apparatus of file download - Google Patents
A kind of method and apparatus of file download Download PDFInfo
- Publication number
- CN104969532B CN104969532B CN201380000818.7A CN201380000818A CN104969532B CN 104969532 B CN104969532 B CN 104969532B CN 201380000818 A CN201380000818 A CN 201380000818A CN 104969532 B CN104969532 B CN 104969532B
- Authority
- CN
- China
- Prior art keywords
- file
- mark
- server
- original document
- blocks
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L67/00—Network arrangements or protocols for supporting network services or applications
- H04L67/01—Protocols
- H04L67/06—Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
- Information Transfer Between Computers (AREA)
Abstract
The embodiment of the present application is by terminal during the business provided using CSP server, without separately establishing the connection with UCD server, and after the file by piecemeal uploaded by user by UCD server can be obtained by the connection with CSP server, to avoid terminal from separately establishing the process of connection with UCD server, user's operation is simplified, to improve user experience.
Description
Technical field
The present invention relates to field of cloud calculation more particularly to a kind of method and apparatus of file download.
Background technique
Cloud storage service refers to that server provides a user the file management facilities such as the storage of file, access, backup, shared
Service.Server can be regarded as the hard disk or Dropbox that one is placed on network by user, no matter anywhere, pass through interconnection
Net can manage, the file of edit and storage on the server.
In the prior art, user can be in unified cloud disk (unified cloud disk, UCD) system to difference
Cloud service provider (cloud service provider, CSP) registration after, and at UCD server UCD server infuse
Volume, and user's relevant information registered at CSP server is provided to UCD server, as user registers at CSP server
Username and password, so as to UCD server can according to registration information login user of the user at CSP server registered
CSP server user by UCD client (UCD Client), to UCD server issue file operation requests (as uploaded,
Downloading, changes filename etc.).
For example, user uploads a file to UCD server by UCD client, UCD server end can be according to certain
Strategy selects a suitable CSP in user chartered CSP, and specific strategy can be with are as follows: most such as current storage capacity
Big CSP server, current transmission fastest CSP server, and this file is really stored in and is selected by UCD server
In the Dropbox of CSP server.For users, only know that file is stored in the CSP device of user's registration in advance, but do not know on earth
Which CSP server be stored in.For example, user uploads 2 files by UCD client, both of these documents are by UCD server
It has been respectively stored at CSP server A and CSP server C, it is also possible to which both of these documents are existed simultaneously a CSP service
Device.
In addition, user is sometimes by a file division at different blocks of files, and by different blocks of files storages to not
In same equipment (such as server).Accordingly even when a blocks of files is stolen, it is whole since the alternative document block of this document can not be obtained
A file still can not obtain, to ensure that this document safety.As it is existing by a file division be two blocks of files,
And two blocks of files are stored respectively on a different server, a blocks of files is the sensitive data in file, another
Blocks of files is the general data in file, to ensure the safety of file by the method for file division.In another scene
In, user is it is also possible to carry out piecemeal storage to big file.
However, when as selected CSP server to store blocks of files by UCD server, the not identical text of same file
Part block is probably stored at different CSP servers.Therefore, when the different blocks of files of same file are stored in difference
When in the Dropbox of CSP server, user terminal can not be obtained from CSP server when establishing connection with CSP server and be stored
File, and after separately can only establishing connection with UCD server by terminal, obtain entire file from UCD server.To lead
Applying, family is cumbersome and inconvenient, and experience is not high.
Summary of the invention
The method and apparatus for the file download that the embodiment of the present invention provides can make terminal log in CSP server
After the business provided using CSP server, file is downloaded from by CSP server.
According to a first aspect of the embodiments of the present invention, a kind of document down loading method, in first terminal by user described
After the registration information of first cloud service provider CSP server logs in the first CSP server, and the first CSP takes
Device be engaged in during the first terminal offer business, this method comprises: the first CSP server receives described first eventually
The file download request sent is held, the mark of original document is carried in the file download request;The first CSP server is true
Fixed original document corresponding with the mark of the original document obtains the first of the blocks of files for uploading the original document by piecemeal
The mark of unified cloud disk UCD server;The first CSP server is according to the mark of the first UCD server to described
First UCD server sends file acquisition request, and the file acquisition request carries the mark of the original document;The file
Acquisition request is used to indicate the letter that the first UCD server obtains the original document of storage according to the mark of the original document
Breath, and according to the mark of the 2nd CSP server of storage file block in the information of the original document, it is taken from the 2nd CSP
The 2nd CSP server acquisition blocks of files that the mark of device of being engaged in indicates, and the blocks of files of the acquisition is synthesized into original document;Institute
It states the first CSP server and receives the file acquisition response that the first UCD server returns, and the file acquisition is responded and is sent out
The first terminal is given, to indicate that the first terminal obtains the original document by file acquisition response.
First in conjunction with first aspect present invention is possible, and the first terminal passes through described in file acquisition response acquisition
Original document specifically: the file acquisition response carries the original document, and the first terminal is from file acquisition response
Obtain the original document;Or the file acquisition response carries the original document in the storage of the first UCD server
Address;The first terminal obtains the original document from the first UCD server according to the storage address.
It is possible in conjunction with the first aspect of the embodiment of the present invention or first possible second, it is described to receive the first terminal hair
Before the file download request sent, this method further comprises: receiving the inquiry request that the first terminal is sent;According to described
User obtains the blocks of files that the user stores in the first CSP server in the registration information of the first CSP server
Information, the blocks of files information include to upload original document belonging to the mark and blocks of files of the first UCD server
Mark;Blocks of files inquiry request, the text are sent to the first UCD server according to the mark of the first UCD server
Mark comprising original document belonging to the blocks of files in part block inquiry request;Receive what the first UCD server returned
The information of the information of the original document, the original document of the return includes: title, the mark of original document of original document
With the divided file number of blocks of mark and original document of the first UCD server;By the title of the original document and institute
The mark for stating original document is sent to the first terminal, and stores the information of the original document of the return;Or by the original
The information of beginning file is sent to the first terminal.
The second possible third in conjunction with the first aspect of the embodiment of the present invention is possible, and the file block message further wraps
Marker containing blocks of files;The mark according to the first UCD server sends blocks of files to the first UCD server and looks into
Before asking request, the first CSP server further determines that the blocks of files marker is original document segmentation mark.
The second possibility or third the possible 4th in conjunction with the first aspect of the embodiment of the present invention is possible, the file download
It is further included in request: the mark of the divided file number of blocks of original document and the first UCD server;
The determining original document corresponding with the mark of the original document of the first CSP server obtains the first unification by piecemeal
The mark of cloud disk UCD server specifically: the first CSP server determines the divided file block number of the original document
Amount is greater than 1, and the mark of the first UCD server is obtained from the file download request;Or, the first CSP service
The determining original document corresponding with the mark of the original document of device obtains the first unified cloud disk UCD server by piecemeal
Mark specifically: the first CSP server according to the original document mark obtain storage with the original document
The corresponding original document of mark information, the information of the original document includes: the mark of original document and the first UCD service
The divided file number of blocks of the mark and original document of device;The first CSP server determines that the original document is divided
The file number of blocks cut is greater than 1, and the mark of the first UCD server is obtained from the information of the original document.
Any of the above-described possible 5th in conjunction with first aspect of the embodiment of the present invention is possible, and this method further comprises:
Receive the upload block request that the first UCD server is sent;The upload block request includes the original document
Blocks of files, the first UCD server generate file block message and the user in the first CSP server
Registration information;The blocks of files is stored, and by the file block message and the user in the first CSP server
Registration information mapping storage.
Any of the above-described possible 6th in conjunction with first aspect of the embodiment of the present invention is possible, and this method further comprises:
The file deletion requests that first terminal is sent are received, the mark for the file that need to be deleted is carried in the file deletion requests
Know;
The first CSP server determines that the file that need to be deleted corresponding with the mark of the file that need to be deleted is divided
Block, and obtain the mark for uploading the 2nd UCD server of blocks of files of the file that need to be deleted;
The file deletion requests, the text are sent to the 2nd UCD server according to the mark of the 2nd UCD server
Part removal request is used to indicate fourth CSP clothes of the 2nd UCD server to the blocks of files for storing the file that need to be deleted
Device of being engaged in sends blocks of files removal request, and after receiving the blocks of files that the 4th CSP server returns and deleting response, deletes the
The file information for the file that the need of two UCD servers storage are deleted simultaneously returns to file deletion response to the first CSP server;
The first CSP server receives the file that the 2nd UCD server returns and deletes response, eventually to described first
End sends the file and deletes response.
The the 6th the possible 7th in conjunction with first aspect of the embodiment of the present invention is possible, in the file deletion requests further
Include: the mark of the divided file number of blocks of the file that need to be deleted and the 2nd UCD server;The first CSP server
Determining file corresponding with the mark of the file that need to be deleted obtains the mark of the 2nd UCD server by piecemeal specifically:
The first CSP server, which determines, needs the divided file number of blocks of file deleted to be greater than described in the file deletion requests
1, and obtain from the file deletion requests mark of the 2nd UCD server;Or, the first CSP server determines
File corresponding with the mark of the file that need to be deleted obtains the mark of the 2nd UCD server by piecemeal specifically: described
First CSP server obtains the corresponding with the mark of the file that need to be deleted of storage according to the mark of the file that need to be deleted
Need delete file information, the information of the file that need to be deleted includes: the mark of the file that need to be deleted, second
The mark of UCD server and the divided file number of blocks of file that need to be deleted;The first CSP server determination is deposited
The divided file number of blocks of file that need to be deleted of storage is greater than 1, and obtains from the information of the file that need to be deleted
The mark of the 2nd UCD server.
Second aspect of the embodiment of the present invention provides a kind of file providing method, comprising: unified cloud disk UCD server connects
The file acquisition request of the first cloud service provider CSP server transmission is received, the file acquisition request carries original document
Mark;The letter of the original document corresponding with the mark of the original document of storage is obtained according to the mark of the original document
Breath, the information of the original document include the mark of the 2nd CSP server of storage file block, the storage of the 2nd CSP server
The order of file block identification and the blocks of files in original document;According to the mark of the 2nd CSP server, from described
2nd CSP server of the mark instruction of the 2nd CSP server obtains the file block identification with the 2nd CSP server storage
Corresponding blocks of files;It, will be each according to order of the blocks of files obtained from the 2nd CSP server in original document
The blocks of files obtained from the 2nd CSP server merges into the original document, and the original document is supplied to the
One terminal.
First in conjunction with second aspect of the embodiment of the present invention is possible, described that the original document is supplied to described first eventually
End includes: to return to file acquisition response to the first CSP server, and the file acquisition response carries the original document;It is described
File acquisition response, which is used to indicate the first CSP server and receives file acquisition response, is sent to described first eventually
End;Or, returning to file acquisition response to the first CSP server, the file acquisition response carries the original document and exists
The storage address of the UCD server;The file acquisition response is used to indicate the first CSP server and obtains the file
Response is taken to be sent to the first terminal, and the instruction first terminal obtains the original text according to the storage address
Part.
Possible in conjunction with second aspect of the embodiment of the present invention or first possible second, the UCD server is in second terminal
Through user after the registration information of the UCD server logs in, this method further comprises: receiving the second terminal and sends
File upload request, the file upload request carries the size for the original document that user need to upload;Obtain the user
The information of the 3rd registered CSP server;Size information according to the information of the 3rd CSP server and original document is true
Determine the 2nd CSP server for uploading the blocks of files of the original document, and receives the original of the second terminal transmission
After file, the blocks of files of the original document is uploaded to the 2nd CSP server.
The second possible third in conjunction with second aspect of the embodiment of the present invention is possible, the information of the 3rd CSP server
The maximum supported comprising the user in the free memory of the 3rd CSP server and the 3rd CSP server
The size of file;It is described to be determined according to the information of the 3rd CSP server and the size information of original document for uploading original
2nd CSP server of the blocks of files of beginning file specifically: determine that the free memory is greater than the big of the original document
It is small, and the size of the maximum file of the 3rd CSP server support is greater than the 3rd CSP service of the size of the original document
Device is as the 2nd CSP server for uploading blocks of files;It is described that blocks of files is uploaded to the 2nd CSP service implement body
Are as follows: the 2nd CSP server is uploaded to using original document as blocks of files;Or, described according to the 3rd CSP server
Information and the size information of original document determine that the 2nd CSP of the blocks of files for uploading the original document services implement body
Are as follows: determine that free memory is greater than at least two the 3rd CSP of the size for the maximum file that the 3rd CSP server is supported
Server is as the 2nd CSP server for uploading blocks of files, according to determining at least two the 2nd CSP server branch
The original document is divided at least two blocks of files by the size for the maximum file held, and at least two blocks of files is divided
At least two the 2nd CSP server is not uploaded to, and the size of the blocks of files is less than what the 2nd CSP server was supported
The size of maximum file.
The second possible third in conjunction with second aspect of the embodiment of the present invention is possible, described to receive the second terminal hair
Before being uploaded to the 2nd CSP server after the original document sent and by the blocks of files of the original document, this method into
One step includes: to store the information of the original document, and the information of the original document includes: the mark of original document, original text
The file block identification of the divided file number of blocks of part and each blocks of files, and the 2nd CSP clothes of storage each blocks of files
Order of the mark and each blocks of files of business device in original document.
Third the possible 4th in conjunction with second aspect of the embodiment of the present invention is possible, and this method further comprises:
According to the mark of the 2nd CSP server of the storage blocks of files by the mark of the UCD server, file
The order of block identification and blocks of files in original document is sent to the 2nd CSP server.
Any of the above-described possible 5th in conjunction with second aspect of the embodiment of the present invention is possible, and this method further comprises: connecing
The file deletion requests of the first CSP server transmission are received, the mark for the file that need to be deleted is carried in the file deletion requests;Root
The file that need to be deleted corresponding with the mark of the file that need to be deleted of storage is obtained according to the mark of the file that need to be deleted
Information, the information of the file that need to be deleted includes the 4th CSP server for storing the blocks of files that need to delete file
The mark of mark, the blocks of files of each 4th CSP server storage;According to according to the mark of the 4th CSP server to described
Four CSP servers send blocks of files removal request, and the 4th CSP server storage is carried in the blocks of files removal request
The mark of file will, the file deletion requests are used to indicate the 4th CSP server and delete and the 4th CSP server
The corresponding blocks of files of file block identification of storage and the information of blocks of files;Receive the blocks of files that the 4th CSP server is sent
Delete response;The information of the file that need to be deleted of the UCD server storage is deleted, and is returned to the first CSP server
File deletes response, and the file, which deletes response and is used to indicate the first CSP server the file is deleted response, is sent to the
One terminal.
It includes: receiving unit that the third aspect of the embodiment of the present invention, which provides a kind of cloud service provider CSP server, is used for
Pass through user after the registration information of the CSP server logs in the CSP server in first terminal, and the CSP takes
Device be engaged in during the first terminal offer business, receiving the file download request that first terminal is sent, under the file
The mark for carrying original document in request is carried, and the mark of the original document is sent to determining acquiring unit;It is described true
Determine acquiring unit, it is determining and the original document for receiving the mark for the original document that the receiving unit is sent
Corresponding original document is identified by piecemeal, and obtains the first unified cloud disk UCD for uploading the blocks of files of the original document
The mark of server, and the mark of the first UCD server is sent to transmission unit;The transmission unit, for receiving
The mark for the first UCD server that the determining receiving unit is sent, and according to the mark of the first UCD server to institute
It states the first UCD server and sends file acquisition request, the file acquisition request carries the mark of the original document;The text
Part acquisition request is used to indicate the first UCD server and obtains the original document stored according to the mark of the original document
Information, and according to the mark of the corresponding 2nd CSP server of blocks of files in the information of first beginning file, from the 2nd CSP
2nd CSP server of the mark instruction of server obtains blocks of files, and the blocks of files of the acquisition is synthesized original document;
The receiving unit is further used for receiving the file acquisition response that the first UCD server returns, and the file is obtained
Response is taken to be sent to the transmission unit, the transmission unit is further used for receiving the file acquisition that the receiving unit is sent
Response, and file acquisition response is sent to the first terminal, to indicate that the first terminal is obtained by the file
Response is taken to obtain the original document.
First in conjunction with the above-mentioned third aspect is possible, and the server further includes storage unit;The receiving unit
It is further used for before receiving the file download request that the first terminal is sent, receives the inquiry that the first terminal is sent
Request, and the inquiry request is sent to the determining acquiring unit;The determining acquiring unit is further used for receiving institute
State receiving unit transmission inquiry request, and according to the user the first CSP server registration information obtain described in
The file block message that user stores in the storage unit, mark of the blocks of files information comprising the first UCD server,
And the mark of original document belonging to blocks of files, and by the original document mark and the first UCD server mark
Knowledge is sent to the transmission unit;The transmission unit is further used for receiving the described original of the determining acquiring unit transmission
The mark of file and the mark of the first UCD server, according to the mark of the first UCD server to the first UCD
Server sends blocks of files inquiry request, the mark comprising original document belonging to the blocks of files in the blocks of files inquiry request
Know;The receiving unit is further used for receiving the information for the original document that the first UCD server returns, described to return
The information of original document returned includes: the title of original document, the mark of the mark of original document and the first UCD server and
The divided file number of blocks of original document, and the information of the original document is sent to the transmission unit and the storage
Unit;The storage unit is used to receive the information for the original document that the receiving unit is sent, and the storage original text
The information of part;The transmission unit is further used for receiving the information for the original document that the receiving unit is sent, and will be described
The title of the original document in the information of original document and the mark of the original document are sent to the first terminal, or
The information of the original document is sent to the first terminal.
First possible second in conjunction with the above-mentioned third aspect is possible, and the file block message further includes blocks of files mark
Know position;The transmission unit sends blocks of files inquiry to the first UCD server according to the mark of the first UCD server
Before request, the determining acquiring unit further determines that the blocks of files marker is original document segmentation mark.
Any of the above-described possible third in conjunction with the third aspect of the embodiment of the present invention is possible,
It is further included in the file download request: the divided file number of blocks of original document and described first
The mark of UCD server;The determining acquiring unit determine original document corresponding with the mark of the original document by piecemeal,
And obtain the mark of the first unified cloud disk UCD server specifically: the first CSP server determines the original document quilt
The file number of blocks of segmentation is greater than 1, and the mark of the first UCD server is obtained from the file download request;Or
The determining acquiring unit determine original document corresponding with the mark of the original document by piecemeal, and acquisition the
The mark of one unified cloud disk UCD server specifically: the first CSP server is obtained according to the mark of the original document
The information of the original document corresponding with the mark of the original document of storage, the information of the original document includes: original text
The mark of part and the mark and the divided file number of blocks of original document of the first UCD server;The first CSP server
It determines that the divided file number of blocks of the original document is greater than 1, and obtains described first from the information of the original document
The mark of UCD server.
Any of the above-described possible 4th in conjunction with the third aspect of the embodiment of the present invention is possible,
The receiving unit is further used for receiving the upload block request that the first UCD server is sent;The upload
The file block message and described that blocks of files of the block request comprising the original document and the first UCD server generate
Registration information of the user in the first CSP server;
The storage unit is further used for receiving the upload block request that the receiving unit is sent, and stores the blocks of files
And by the file block message and the user the first CSP server registration information mapping storage.
Any of the above-described possible 5th in conjunction with the third aspect of the embodiment of the present invention is possible, and the receiving unit is further used
The mark for the file that need to be deleted is carried in the file deletion requests that first terminal is sent, the file deletion requests, it will be described
The mark for the file that need to be deleted is sent to the determining acquiring unit;
The determining acquiring unit is further used for receiving the mark for the file that the need that the receiving unit is sent are deleted, really
The fixed file that need to be deleted corresponding with the mark of the file that need to be deleted is obtained by piecemeal and is uploaded the file that need to be deleted
Blocks of files the 2nd UCD server mark, and the mark of this 2nd UCD server is sent to transmission unit;
The transmission unit is further used for receiving the mark for the 2nd UCD server that the determining acquiring unit is sent
Know, the file deletion requests is sent to the 2nd UCD server according to the mark of the 2nd UCD server, the file is deleted
Except request is used to indicate fourth CSP server of the 2nd UCD server to the blocks of files for storing the file that need to be deleted
Blocks of files removal request is sent, and after receiving the blocks of files that the 4th CSP server returns and deleting response, deletes second
The information for the file that the need of UCD server storage are deleted simultaneously returns to file deletion response to the first CSP server;
The receiving unit, which is further used for receiving the file that the 2nd UCD server returns, deletes response, and by institute
It states file deletion response and is sent to the transmission unit;
The transmission unit is further used for receiving the file that the receiving unit is sent and deletes response, and to described
First terminal sends file and deletes response.
The the 5th the possible 6th in conjunction with the third aspect of the embodiment of the present invention is possible, in the file deletion requests further
Include: the mark of the divided file number of blocks of the file that need to be deleted and the 2nd UCD server;The determining acquiring unit
Determining original document corresponding with the mark of the file that need to be deleted obtains the mark tool of the 2nd UCD server by piecemeal
Body are as follows: determine that the divided file number of blocks of file for needing to delete described in the file deletion requests is greater than 1, and from the text
The mark of the 2nd UCD server is obtained in part removal request;Or
The determining acquiring unit determine file corresponding with the mark of the file that need to be deleted by piecemeal, and acquisition the
The mark of two UCD servers specifically: the first CSP server obtains storage according to the mark of the file that need to be deleted
The information of the file that need to be deleted corresponding with the mark of the file that need to be deleted, the information of the file that need to be deleted includes:
The mark of the file that need to be deleted, the mark of the 2nd UCD server and the divided blocks of files of file that need to be deleted
Quantity;Determine that the divided file number of blocks of file that need to be deleted of storage is greater than 1, and from the file that need to be deleted
The mark of the 2nd UCD server is obtained in information.
Fourth aspect present invention provides a kind of unified cloud disk UCD server
Receiving unit, for receiving the file acquisition request of the first cloud service provider CSP server transmission, the file
The mark of acquisition request carrying original document;And the mark of the original document is sent to determining acquiring unit;
The determining acquiring unit is used to receive the mark for the original document that the receiving unit is sent, according to described
The mark of original document obtains the information of the original document corresponding with the mark of the original document of storage, the original document
Information include storage file block the 2nd CSP server mark, the 2nd CSP server storage file block identification and institute
State order of the blocks of files in original document;And the mark according to the 2nd CSP server, it is serviced from the 2nd CSP
2nd CSP server of the mark instruction of device obtains file corresponding with the file block identification that the 2nd CSP server stores
Block;And the order of the blocks of files and the blocks of files in original document is sent to the transmission unit;
The transmission unit is used to receive the blocks of files that the determining acquiring unit is sent and the blocks of files original
Order in file is obtained each from the 2nd CSP server according to order of the blocks of files in original document
Blocks of files merges into the original document, and the original document is supplied to first terminal.
First in conjunction with fourth aspect present invention is possible, and the original document is supplied to first terminal by the transmission unit
Specifically:
File acquisition response is returned to the first CSP server, the file acquisition response carries the original document;It is described
File acquisition response, which is used to indicate the first CSP server and receives file acquisition response, is sent to described first eventually
End;Or
File acquisition response is returned to the first CSP server, the file acquisition response carries the original document
In the storage address of the UCD server;The file acquisition response is used to indicate the first CSP server for the file
It obtains response and is sent to the first terminal, and the instruction first terminal obtains the original text according to the storage address
Part.
Possible in conjunction with fourth aspect present invention or first possible second, the receiving unit passes through user in second terminal
It is further used for receiving what the second terminal was sent after the registration information of the UCD server logs in the UCD server
File upload request, the file upload request carry the size for the original document that user need to upload;
The determining acquiring unit is further used for obtaining the information for the 3rd CSP server that the user's registration is crossed, root
The blocks of files for uploading the original document is determined according to the information of the 3rd CSP server and the size information of original document
The 2nd CSP server;
The receiving unit is further used for receiving the original document that the second terminal is sent, and by the original document
It is sent to the transmission unit;
The transmission unit is further used for receiving the original document that the receiving unit is sent, and will be described original
The blocks of files of file is uploaded to the 2nd CSP server that the determining acquiring unit determines.
The possible third of the second of fourth aspect present invention is possible, and the information of the 3rd CSP server includes the institute
State the size for the maximum file that user supports in the free memory of the 3rd CSP server and the 3rd CSP server;
The determining acquiring unit is determined and is used according to the information of the 3rd CSP server and the size information of original document
In the 2nd CSP server of the blocks of files for uploading original document specifically: it is described original to determine that the free memory is greater than
The size of file, and the size of maximum file supported of the 3rd CSP server is greater than the of the size of the original document
Three CSP servers are as the 2nd CSP server for uploading blocks of files;The transmission unit is by the file of the original document
Block is uploaded to the 2nd CSP server that the determining acquiring unit determines specifically: using original document as in blocks of files
It is transmitted to the 2nd CSP server;Or, information and original text of the determining acquiring unit according to the 3rd CSP server
The size information of part determines the 2nd CSP server for uploading the blocks of files of the original document specifically: determines available deposit
At least two the 3rd CSP servers for storing up the size that space is greater than the maximum file that the 3rd CSP server is supported, which are used as, to be used
In the 2nd CSP server for uploading blocks of files, the maximum file supported according to determining at least two the 2nd CSP server
Size the original document is divided at least two blocks of files, the size of the blocks of files is serviced less than the 2nd CSP
The size for the maximum file that device is supported;The blocks of files of the original document is uploaded to the determining acquisition list by the transmission unit
The 2nd CSP server that member determines specifically: at least two blocks of files is uploaded to described at least two the respectively
Two CSP servers.
Third the possible 4th in conjunction with fourth aspect present invention is possible, and the server further comprises storage unit;
The storage unit is used to store the information of the original document, and the information of the original document includes: original text
The file block identification of the divided file number of blocks of the mark of part, original document and each blocks of files, and storage each text
Order of the mark and each blocks of files of 2nd CSP server of part block in original document.
The the 4th the possible 5th in conjunction with fourth aspect present invention is possible, and the transmission unit is further used for according to
The mark of 2nd CSP server of the storage blocks of files of storage unit storage is by mark, the blocks of files of the UCD server
The order of mark and blocks of files in original document is sent to the 2nd CSP server.
Possible in conjunction with fourth aspect present invention any of the above-described possible 6th, it is single that the server further includes deletion
Member;
The receiving unit is further used for receiving the file deletion requests that the first CSP server is sent, and the file is deleted
Except the mark for carrying the file that need to be deleted in request;
The determining acquiring unit is further used for obtaining the storage unit according to the mark of the file that need to be deleted
The information of the file that need to be deleted corresponding with the mark of the file that need to be deleted of storage, the information of the file that need to be deleted
Comprising storing the mark of the 4th CSP server of the blocks of files that need to delete file, the file of each 4th CSP server storage
The mark of block, and the information of the file that need to be deleted is sent to the transmission unit;
The transmission unit is further used for receiving the information for the file that the need that the determining acquiring unit is sent are deleted, root
Blocks of files removal request, the blocks of files are sent to the 4th CSP server according to according to the mark of the 4th CSP server
The mark of the file will of the 4th CSP server storage is carried in removal request, the file deletion requests are used to indicate institute
It states the 4th CSP server and deletes corresponding with the file block identification that the 4th CSP server stores blocks of files and blocks of files
Information;
The receiving unit is further used for receiving the blocks of files deletion response that the 4th CSP server is sent;
The information deleted unit and be used to delete the file that need to be deleted of the storage unit storage;
The transmission unit is further used for returning to file deletion response to the first CSP server, and the file, which is deleted, to be rung
The file is deleted into response applied to the first CSP server of instruction and is sent to first terminal.
The 5th aspect of the embodiment of the present invention provides a kind of CSP server, comprising: transferring and receiving apparatus, memory and processor;
The transceiver be used for receives first terminal by user the CSP server registration information login described in
After CSP server, and the CSP server is sent to during the first terminal offer business, receiving first terminal
File download request, the mark of original document is carried in the file download request;
The memory executes each program and answers for storing various programs and application under the calling of the processor
Function;
The various programs and application that the processor is used to that memory to be called to store, and determination and the original document
Corresponding original document is identified by piecemeal, obtains the first unified cloud disk UCD service of the blocks of files for uploading the original document
The mark of device;File acquisition request is sent to the first UCD server according to the mark of the first UCD server, it is described
File acquisition request carries the mark of the original document;The file acquisition request is used to indicate the first UCD server
The information of the original document of storage is obtained according to the mark of the original document, and is stored according in the information of the original document
The mark of 2nd CSP server of blocks of files is obtained from the 2nd CSP server of the mark instruction of the 2nd CSP server
Blocks of files, and the blocks of files of the acquisition is synthesized into original document;
The transceiver is further used for the file acquisition response that the first UCD server returns, and by the file
It obtains response and is sent to the first terminal, to indicate that the first terminal is described original by file acquisition response acquisition
File.
The 5th aspect of the embodiment of the present invention provides a kind of UCD server, comprising: transferring and receiving apparatus, memory and processor;
The transceiver receives the file acquisition request that the first cloud service provider CSP server is sent for device, described
File acquisition request carries the mark of original document;
The memory executes each program and application for various programs and application under the calling of the processor
Function;
The various programs and application that the processor is used to that memory to be called to store, are obtained according to the mark of the original document
The information of the original document corresponding with the mark of the original document of storage is taken, the information of the original document includes storage text
The mark of 2nd CSP server of part block, the file block identification of the 2nd CSP server storage and the blocks of files are in original text
Order in part, according to the mark of the 2nd CSP server, from the 2nd CSP of the mark instruction of the 2nd CSP server
Server obtains blocks of files corresponding with the file block identification that the 2nd CSP server stores;According to described from described second
Order of the blocks of files that CSP server obtains in original document, by each blocks of files obtained from the 2nd CSP server
Merge into the original document;
The transceiver is further used for the original document being supplied to first terminal.
Through the above scheme as can be seen that terminal is during the business provided using CSP server, without separately building
The vertical connection with UCD server, and can be obtained by the connection with CSP server and be passed through on UCD server by user
After the file by piecemeal passed, so that terminal be avoided separately to establish the process of connection with UCD server, user's operation is simplified, from
And improve user experience.
Detailed description of the invention
In order to illustrate the technical solution of the embodiments of the present invention more clearly, required use in being described below to embodiment
Attached drawing be briefly described, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this
For the those of ordinary skill of field, without any creative labor, it can also be obtained according to these attached drawings other
Attached drawing.
Fig. 1 is the method flow diagram of file download provided in an embodiment of the present invention;
Fig. 2 is method flow diagram of the terminal provided in an embodiment of the present invention by transmitting file in UCD client;
Fig. 3 is the original document A that terminal provided in an embodiment of the present invention passes through that UCD server is uploaded by UCD client
With original document B CSP server storage schematic diagram
When Fig. 4 is that user provided in an embodiment of the present invention logs in CSP server B by terminal, obtains user and be stored in respectively
The method flow diagram of CSP server file information;
Fig. 5 is stored in the schematic diagram of the file of CSP server for the user that CSP server is supplied to user;
Fig. 6 is the method flow diagram of the file provided in an embodiment of the present invention for obtaining and being uploaded by UCD server;
Fig. 7 is the method flow diagram that terminal provided in an embodiment of the present invention deletes file by CSP server;
Fig. 8 provides the method flow diagram of file to be provided in an embodiment of the present invention
Fig. 9 is the structural schematic diagram of CSP server provided in an embodiment of the present invention;
Figure 10 is another structural schematic diagram of CSP server provided in an embodiment of the present invention;
Figure 11 is the structural schematic diagram of UCD server provided in an embodiment of the present invention;
Figure 12 is another structural schematic diagram of UCD server provided in an embodiment of the present invention
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
Fig. 1 is the method flow diagram of file download provided in an embodiment of the present invention, is included the following steps:
Step 101, the first CSP server are to during first terminal offer business, receiving the text that first terminal is sent
Part downloading is requested, and the mark of original document is carried in the file download request;
Step 102, the first CSP server determine that original document corresponding with the mark of the original document is divided
Block, and obtain the mark of unified cloud disk UCD server;
Step 103, the first CSP server take business device to send according to the mark of the UCD server to the UCDe
File acquisition request, the file acquisition request carry the mark of the original document;The file acquisition request is used to indicate
The UCD server obtains the information of the original document of storage according to the mark of the original document, and according to the original text
The mark of the corresponding 2nd CSP server of blocks of files in the information of part, from the of the mark instruction of the 2nd CSP server
Two CSP servers obtain blocks of files, and the blocks of files of the acquisition is synthesized original document;
Step 103, the first CSP server receive the file acquisition response that the UCD server returns, and will be described
File acquisition response is sent to the first terminal, to indicate that the first terminal passes through described in file acquisition response acquisition
Original document.
As can be seen from the above embodiments, through the above scheme as can be seen that terminal is in the industry provided using CSP server
During business, without separately establishing the connection with UCD server, and it can be obtained by the connection with CSP server logical
After crossing the file by piecemeal that user is uploaded by UCD server, so that terminal be avoided separately to establish connection with UCD server
Process simplifies user's operation, to improve user experience.
Further, the first terminal obtains the original document by file acquisition response specifically: described
File acquisition response carries the original document, and the first terminal obtains the original document from file acquisition response;Or,
The file acquisition response carries the original document in the storage address of the first UCD server;The first terminal root
The original document is obtained from the first UCD server according to the storage address.
It is worth noting that in the embodiment of the present invention for convenience of description, the UCD server for receiving file deletion requests is claimed
For the 2nd UCD server, the UCD server for receiving downloading request and file upload request is known as the first UCD server.It will use
The registered CSP server in family is known as the 3rd CSP server, by user's registration cross CSP take device determine be used to store it is original
The CSP server of file is known as the 2nd CSP server.The CSP server that original document (file that need to be downloaded) will be stored claims
For the 2nd CSP server, the CSP server for the file that storage need to delete is known as the 4th CSP server.It will upload or need to download
The mark of file be known as the mark of original document, the mark for the file that need to be deleted is known as the mark of file that need to be deleted, will
The corresponding information of mark of original document is known as the information of original document, and the corresponding information of the mark for the file that need to be deleted is known as
The information for the file that need to be deleted.The terminal connecting with CSP server is known as first terminal, the end that will be connect with UCD server
End is known as second terminal.
Fig. 2 is the method flow diagram of recovery session content transmission provided in an embodiment of the present invention, is included the following steps:
Step 200, second terminal send file upload request, the file to the first UCD server by UCD client
Upload request carries the size information for the original document that user need to upload.
Before executing this step, terminal logs in described the in the registration information of the first UCD server by user
One UCD server, it is worth noting that, the terminal in process of the present invention is connect with UCD server, is as mounted with UCD client
The terminal at end, referred to as second terminal.
Step 201, the first UCD server obtain the information for the CSP server that the user's registration is crossed.
Specifically, the first UCD server stores registration information of the user at the 3rd CSP server.As described above, this
The CSP server registered customers as in inventive embodiments is referred to as the 3rd CSP server.The user services in the 3rd CSP
Registration information at device includes the mark (such as link address of the 3rd CSP server) of the 3rd CSP server, user in third
The account name and password of CSP server registration.Registration of the first UCD server according to the user at the 3rd CSP server
Information, obtains the information of the 3rd CSP server from the 3rd CSP server, and the information of the 3rd CSP server includes
User is in the free memory of the CSP server, the maximum file size and/or the 3rd CSP of the support of the 3rd CSP server
The connection speed of server.
In the present embodiment, it is assumed that user registers at CSP server A and CSP server B respectively, therefore, the first UCD clothes
Business device stores user in CSP server A and CSP server B, the registration information of CSP server C, and respectively to CSP server
The information of CSP server A and CSP server B is obtained at A and CSP server B.CSP server A, CSP server C and CSP clothes
Business device B is referred to as the 3rd CSP server.
Step 202, the first UCD server are according to the information of the 3rd CSP server and the size information of original document
Determine the 2nd CSP server for uploading the blocks of files of the original document.
The upload file request response that step 203, the first UCD server are sent to second terminal.
Step 204, second terminal upload original document to UCD server.
Step 205, the first UCD server divides original document, i.e., to original document piecemeal.
After the completion of file upload, the first UCD server is according to the information of the 2nd determining CSP server, to original text
Part carries out piecemeal, and generates the information of original document, such as the Metadata of original document, and the information preservation of original document is existed
At first UCD server.
As an example, the information of the 3rd CSP server includes that the user services in the 3rd CSP
The size for the maximum file that the free memory of device and the 3rd CSP server are supported;
It is described to be determined according to the information of the 3rd CSP server and the size information of original document for uploading original text
2nd CSP server of the blocks of files of part specifically: determine that the free memory is greater than the size of the original document, and
The 3rd CSP server that the size for the maximum file that the 3rd CSP server is supported is greater than the size of the original document is made
For the 2nd CSP server for uploading blocks of files;It is described that blocks of files is uploaded to the 2nd CSP server specifically: will
Original document is uploaded to the 2nd CSP server as blocks of files;Or, the information according to the 3rd CSP server
And the size information of original document determines the 2nd CSP server for uploading the blocks of files of the original document specifically: really
Determine at least two threeth CSPs service of the free memory greater than the size for the maximum file that the 3rd CSP server is supported
Device is supported as the 2nd CSP server for uploading blocks of files according to determining at least two the 2nd CSP server
The original document is divided at least two blocks of files by the size of maximum file, and by least two blocks of files respectively on
At least two the 2nd CSP server is passed to, the size of the blocks of files is less than the maximum that the 2nd CSP server is supported
The size of file.
For example, in the present embodiment, the first UCD server determines three CSP server (i.e. thirds that user's registration is crossed
CSP server) in CSP server A and CSP server as storage file block the 2nd CSP server, then by original document
Few two blocks of files are divided into, the size of each file is less than the size of the maximum file of the support of CSP server A or is less than
The size for the maximum file that CSP server B is supported.Certainly, UCD can also divide original document according to other strategies
Block, the embodiment of the present invention is it is not limited here.
Further, the information of UCD server storage original document may include: to store the information of the original document,
The information of the original document includes: the mark of original document, the divided file number of blocks of original document and each blocks of files
File block identification, and storage each blocks of files the 2nd CSP server mark and each blocks of files original
Order in file.
Optionally, the information of the original document of the first UCD server storage can also include the size and original of original document
The time that beginning file is modified.It is worth noting that original document refers to that second end is serviced to the first UCD in the embodiment of the present invention
The file that device is sent.
Specifically, the information of original document is as shown in table 1:
The information of 1 original document of table
Each file block message ChunkInfo for including in the information of original document includes: that file block identification (can unique identification
The mark of blocks of files), the CSP information (title of such as CSP or the address of CSP) of storage file block and blocks of files be in original document
In order.Further, file block message can also be comprising file block size and other file block messages, such as blocks of files
The embodiment of the present invention such as title are it is not limited here.In addition, to file block identification, if the first UCD server is not to original
File carries out piecemeal, and file block identification is also possible to the mark of original document.Specifically, file block message can be as shown in table 2:
Table 2, file block message
UCD server generates the information of blocks of files for each blocks of files according to the information of the original document
Chunkdata.Specifically, the information of blocks of files includes: file block identification, blocks of files source are (as sent blocks of files to the of CSP
The information of one UCD server), the mark of original document belonging to blocks of files.Further, the information of blocks of files can also include
Blocks of files marker, to indicate whether blocks of files or original document after dividing.Wherein, the information of blocks of files includes
Information is as shown in table 3:
The information of 3 blocks of files of table
It as an example, is original document when UCD server passes to the 2nd CSP server, i.e. UCD is not to original
When beginning file block, blocks of files is identified as the mark of original document, and blocks of files marker value is 0.When UCD server passes to
When 2nd CSP server is the blocks of files after segmentation: blocks of files marker value is 1
Step 206 or 206 ', the first UCD server is by uploading block request server UploadChunkRequest to the
Two CSP server up transfer file blocks, wherein described upload blocks of files of the block request comprising the original document, the first UCD
Server generate file block message and the user the first CSP server registration information.
Specifically, the first UCD server is serviced according to the CSP server identification in the information of original document to the 2nd CSP
Device uploads blocks of files.Further, it uploads and also carries user in block request in the account name of the 2nd CSP server registration and close
Code.
After step 207 or the 207 ', the 2nd CSP server have received blocks of files and the corresponding Chunkdata data of blocks of files,
The first UCD server is verified according to the account name and password that upload in block request, and after being verified described in storage
Blocks of files, and by the file block message and the user the first CSP server registration information mapping storage,
And server is returned to UCD server and uploads block response server UploadChunkResponse message.
When UCD server has sent different blocks of files and Chunkdata data to the 2nd different CSP servers, and
After receiving all corresponding return confirmation messages, confirm that the different blocks of files of original document have been stored difference
The 2nd CSP server at.
As another optional way, the first UCD server first passes through user and exists before executing step 206 or 206
The account information of CSP server registration establishes the connection with the 2nd CSP server, is then sent out by the connection to CSP server
It serves and passes block and request above transmitting file block, so that the 2nd CSP server stores the blocks of files, and by the file block message
And the user returns to server upload in the registration information mapping storage of the first CSP server, and to UCD server
Block response server UploadChunkResponse message.
As an example, it is assumed that terminal needs the storage file in CSP server :/home/test/A, referred to as original
File A.It is sent by UCD client to the first UCD server and uploads file request message, in the upload file request message
Carry and user be in UCD server original document ,/home/test/A, size information.First UCD server is receiving end
After holding the upload file request message sent by UCD client, is inquired and used in the account name of UCD server registration according to user
The information of the 3rd registered CSP server of family.In this example, the user is respectively in CSP server A, CSP server B and
CSP server C is registered, then the includes CSP server A, CSP server B and CSP server C in CSP server.UCD
The information of the 3rd CSP server that server inquiry user's registration is crossed specifically: respectively to CSP server A, CSP server B and
CSP server C sends user's available resources inquiry request, and user's available resources inquiry request carries the first UCD server
Account name and password of the user of middle storage in the CSP server registration.First UCD server receives CSP server A, CSP clothes
The response that respectively returns of business device B and CSP server C includes: user's available storage in the CSP server in the response
The maximum file size that space, CSP server are supported is further, can also include connection speed in the response.First UCD clothes
Device be engaged according to the description in step 202, such as according to the information of the CSP server of acquisition and the size information of original document, really
Surely the CSP of upper transmitting file determines the 2nd CSP server.Assuming that the first UCD server is determined original text in the present embodiment
Part ,/home/test/A, piecemeal storage to CSP server A, CSP server B and CSP server C.Then the 2nd CSP server packet
Server A containing CSP, CSP server B and CSP server C.Then, UCD server transmitting file in UCD Client transmission is asked
Response is asked, UCD Client is allowed to upload original document/home/test/A.Pass through in UCD client receiving user terminal
After original document/home/test/A of biography, step 205 is executed, after original document/home/test/A piecemeal, and passes through step
Blocks of files A1-A3 after piecemeal is sent respectively to CSP server A, CSP server B and CSP server C by rapid 206-207.
In another embodiment, it is assumed that the user also needs to upload original document/home/test/B, referred to as original text
Part B.And the first UCD server is according to the size of original document B, and the information of each CSP server got, selects CSP clothes
Device A be engaged in as the 2nd CSP server and stores the original document, block is not carried out to original document B.
The original document A and original document B that user is uploaded by UCD client by the first UCD server are serviced in CSP
The storage schematic diagram of device is as shown in Figure 3: as shown in figure 3, original document A is divided into blocks of files A1-A3 via the first UCD server
Afterwards, CSP server A, CSP server B and CSP server C are respectively stored into.And original document B is via the first UCD server
CSP server A is stored.
First UCD server carries out piecemeal after receiving original document A, and information such as 4 institute of table of the original document A stored
Show:
The information of 4 original document A of table
First UCD server receives original document B, and the information of the original document B stored is as shown in table 5:
The information of 5 original document B of table
First UCD server generates after to original document A blocked file block A1-A3 for blocks of files A1-A3 respectively
The information of blocks of files is as shown in the table:
The information of 6 blocks of files A1 of table
ChunkID | 4295294298cdf |
ChunkBit | 1 |
Source | Http:// ucd server .com/cloudstorage |
MetadataID | df345gf56 |
The information of 7 blocks of files A2 of table
ChunkID | 123973192feju |
ChunkBit | 1 |
Source | Http:// ucd server .com/cloudstorage |
MetadataID | df345gf56 |
The information of 8 blocks of files A3 of table
ChunkID | 873910748wev |
ChunkBit | 1 |
Source | Http:// ucd server .com/cloudstorage |
MetadataID | df345gf56 |
First UCD server is not carrying out piecemeal, but the information evidence of the CSP server uploaded to original document B:
The information of 9 original document B of table
ChunkID | hf52987fd3 |
ChunkBit | 0 |
Source | Http:// ucd server .com/cloudstorage |
MetadataID | 542jd989a3 |
Fig. 4 is CSP server provided in an embodiment of the present invention after user is logged in by terminal, provides service for terminal
In the process, the flow chart that terminal acquisition user is stored in each CSP server file information includes the following steps:
Step 400, first terminal log in CSP server B in the registration information of CSP server B by user, and receive
During CSP server B provides service, file query requests QueryRequest is sent to CSP server B, checks user
In the file information of CSP server B storage.
It is worth noting that the terminal in this process can be the terminal comprising UCD client, it is also possible to not include
The terminal of UCD client.For convenience of description, the terminal for connecting CSP server is known as first terminal by the present embodiment.By
The CSP server of one terminal connection is known as the first CSP server.
Step 401 obtains the user described the in the registration information of the first CSP server according to the user
The file block message of one CSP server storage;
Specifically, each file that CSP server B is stored according to user in the registration information inquiry user of CSP server B
Whether corresponding Chunkdata data include original document segmentation mark;
When in Chunkdata information not comprising original document divide identify, as ChunkBit be 0 when, show
The corresponding file content of Chunkdata information is complete file, then directly executes step 406.When Chunkdata information includes original
When beginning file division mark such as ChunkBit is 1, show that the corresponding file content of Chunkdata information is a certain file
Blocks of files then obtains the mark according to the UCD server in the Source information in Chunkdata information (as sent file
Block to CSP server B the first UCD server mark, such as the address of the first UCD server) and blocks of files as described in original
The mark of beginning file, and execute step 402.
Step 402 sends blocks of files inquiry request to the first UCD server according to the mark of the first UCD server
QueryChunkRequest, the mark comprising original document belonging to the blocks of files in the blocks of files inquiry request.
Step 403, the first UCD server obtain the storage of the first UCD server according to the mark of the original document received
Original document information.The information of original document includes: the title of original document, the mark of original document and the first UCD clothes
The mark and the divided file number of blocks of original document of business device.Optionally, the original document that the first UCD server stores
Information can also include the size of original document and the time that original document is modified.First UCD server simultaneously passes through blocks of files
The information Metadata information of original document is sent to the server of CSP B by inquiry response QueryChunkResponse.
The mark of the title of the original document and the original document is sent to the first terminal by step 404, and
Store the information of the original document of the return;Or the information of the original document is sent to the first terminal.
Alternatively, CSP server B can also generate unified according to the information of the original document received
View, and the information of original document is sent to terminal in the form of unified view.
Certainly, the CSP in this process do not have to inquiry ChunkData information in ChunkBit information, but according to
Source information in Chunkdata directly obtains the information of original document from UCD server.
As an example, it is assumed that first terminal, which logs on to, sends inquiry request to CSP server A after CSP server A
QueryRequest such as can click inquiry button at the interface that CSP server provides.Specifically, user terminal is serviced to CSP
It is the prior art that device A, which sends inquiry request, and this will not be detailed here for the embodiment of the present invention.CSP server A is believed according to the registration of user
Breath obtains the file block message that CSP server A is stored with the file A1, B of the user such as the account name of user.And pass through storage
File A1 information obtain the corresponding Chunkdata of A1 ChunkBit be 1, that is, determine the blocks of files marker be it is original
File division mark shows that A1 is to the blocks of files after original document segmentation.CSP server A is according to the letter of the file A1 of storage
Breath obtains the mark of original document belonging to the mark and blocks of files for uploading the first UCD server, and passes through the first clothes
The mark of business deviceHttp:// ucd server .com/cloudstorageBlocks of files inquiry request is sent to the first UCD server.
Wherein, blocks of files inquiry request carries the mark MetadataID:df345gf56 of original document.UCD server is receiving file
After block inquiry request, according to the mark MetadataID:df345gf56 of the original document of carrying, obtain corresponding with df345gf56
Metadata information, and the information of Metadata (Filename, ModifiedTime, Size, ChunkNum) is returned to
CSP server A.In addition, CSP server A further obtains the information of file B also according to the account name of user, and obtain file B
File block message in ChunkBit be 0, it is determined that CSP server storage file B be original document.CSP server root
Unified view is generated according to the information of the original document A of acquisition and the file block message of original document B, is supplied to terminal.
Specifically, in the present embodiment, Fig. 5 is stored in the CSP server for the user that CSP server is supplied to user
File schematic diagram.As shown in figure 5, be divided into two parts, the listed files information directly uploaded by CSP, and pass through the
The file information that one UCD server uploads, the file information for passing through the upload of the first UCD server includes: original document
Title, the mark of original document and the first UCD server identification (such as the first UCD server address).It further, if should
User leads to multiple first UCD server up transfer file, then can individually list for each first UCD server.Herein no longer
It is described in detail.Alternatively, CSP can not also inquire text before obtaining the information of the original document of file of storage
ChunkBit information in the information of part block, but directly serviced according to the information of blocks of files source Source to corresponding UCD
Device requests Metadata information.
Fig. 6 is the method flow diagram of the file provided in an embodiment of the present invention for obtaining and being uploaded by UCD server, such as Fig. 6
It is shown comprising the steps of:
Step 600, first terminal log in CSP server B by the account information registered in CSP server B, and obtain use
Family is stored in the information of the file of the CSP server, after Fig. 5, sends file download request to CSP server B.The file
The mark of original document and the title of/original document are carried in downloading request.Further, it can also be wrapped in file download request
The information such as the mark and original document modification time of number of blocks containing file (ChunkNum information) and/or the first UCD server.
Step 601, CSP server B determine the corresponding original text of mark of the original document according to the mark of original document
Whether part is divided into blocks of files.
Specifically, if contain blocks of files quantity information in file download request, and file number of blocks is less than or equal to 1
When, show that the corresponding original document of the mark of original document is not divided into blocks of files, user can be by terminal directly under CSP
Load file corresponding with the mark of original document, and the step of no longer executing below.Alternatively, if under file
It carries in request and contains blocks of files quantity information, and when file number of blocks is greater than 1, can be further included in file download request
The mark of first UCD server, and execute step 602.
As another optional way, CSP server B according to the original document mark obtain storage with the original
The information of the corresponding original document of mark of beginning file, the information of the original document includes: the mark of original document and first
The divided file number of blocks of the mark and original document of UCD server;The first CSP server determines the original text
The divided file number of blocks of part is greater than 1, and the mark of the first UCD server is obtained from the information of the original document
Know.Then step 602. is executed
Step 602 is asked according to the mark of the first UCD server to the first UCD server transmission file acquisition
It asks, the file acquisition request carries the mark of the original document.The file acquisition request is used to indicate the first UCD
Server obtains the information of the original document of storage according to the mark of the original document, and according to the information of the original document
The mark of 2nd CSP server of middle storage file block, from the 2nd CSP service of the mark instruction of the 2nd CSP server
Device obtains blocks of files, and the blocks of files of the acquisition is synthesized original document.
Further, the first UCD server obtains according to the mark of the original document received and is stored in UCD server
Original document information, the information of the original document includes the mark of the 2nd CSP server of storage file block, second
Order of the file block identification and the blocks of files of CSP server storage in original document.
Step 603 or step 603 ', according to the mark of the 2nd CSP server, taken to the 2nd CSP of storage file block
Device transmission blocks of files of being engaged in downloads request, carries ChunkID in blocks of files downloading request.
Step 604 or step 604 ', after the 2nd CSP server receives blocks of files downloading request, sent out to the first UCD server
Blocks of files corresponding with ChunkID is sent, and sends blocks of files downloading response to the first UCD server.
Alternatively, blocks of files can be sent to the first UCD server in blocks of files downloading response carrying.
Step 605, the first UCD server are according to the blocks of files obtained from the 2nd CSP server in original text
Each blocks of files obtained from the 2nd CSP server is merged into the original document by the order in part.
By sending file acquisition response to CSP server B, the file acquisition is rung for step 606, the first UCD server
Carrying is answered to position storage address of the file (i.e. original document) on the first UCD server after merging, such as unified resource
Symbol: Uniform Resource Locator, URL.
Step 607, CSP server send file download response to terminal, are carried after merging in the file download response
Storage address of the file (i.e. original document) on the first UCD server.
Step 608, terminal obtain file from the first UCD server by the URL.
It is worth noting that: the original text that the first UCD server can also in step 606 directly merge step 605
Part is sent to CSP server B, in order to which original document is sent to terminal in step 607 by CSP server B.To not hold
Row step 608.
As an example, after terminal logs on to CSP server B by the account information registered, according to the signal of acquisition
Figure, user click the corresponding download button " Download " of file/home/test/A, send file download to CSP server A
Request.Original document/home/test/A mark and/or file number of blocks are carried in request in the file download request
(ChunkNum information).This CSP server B is determined greater than 1, CSP server B since file laxative remedy carries the ChunkNum in request
The file of storage is blocked file, then according to the mark for the first UCD server for including in file download request, to http: //
Ucd server .com/cloudstorage sends file acquisition request.Carry original document A's in the file acquisition request
Identify MetadataID:df345gf56.UCD server can get the corresponding with df345gf56 former of storage according to MetadataID
The information of beginning file.UCD server determines that original document A is divided into 3 files according to the information of the original document of storage
Block is respectively stored in CSP server A, CSP server B, CSP server C, then according to the ChunkID of each blocks of files, to right
The CSP server answered sends blocks of files downloading request, to download blocks of files A1, A2, A3 from these three CSP respectively.It is receiving
Blocks of files A1, A2, A3, correspond to order information according to each blocks of files, these three blocks of files are merged into original document.Further according to
The storage location of complete file after merging generates download link, is sent to CSP server A, and be transmitted to by CSP server A
Terminal.Terminal directly downloads file according to link, can be obtained file/home/test/A.
Similar, when terminal logs on to CSP server B and clicks downloading blocks of files B, CSP server B inquires to obtain original
The corresponding ChunkNum of beginning file B be 1, illustrate that this file is not divided, user then directly from CSP server B download file/
home/test/B。
Fig. 7 is the method flow diagram provided in an embodiment of the present invention that file can be deleted by CSP server, as shown in fig. 7,
It comprises the steps of:
Step 700, user log in CSP in the account information that CSP server B is registered using user by first terminal and service
After device B, the schematic diagram that user is stored in the file of CSP server is obtained by executing the corresponding process of Fig. 4, after Fig. 5, to
CSP server B sends file deletion requests, and the mark for the file that need to be deleted is carried in the file deletion requests.
Specifically, terminal can click the corresponding delete button of some file in schematic diagram, to the first CSP server,
As CSP server B sends file deletion requests.The text that the need obtained from unified view are deleted is contained in file deletion requests
The mark (MetadataID) of part, and/or the mark of the file name of file and/or the 2nd UCD server that need to be deleted.Into
One step, can also include file number of blocks (ChunkNum information) and/or the 2nd UCD server in file deletion requests
It identifies, and the information such as modification time of file that need to be deleted can also include source (source information), file block number
(ChunkNum information).
Step 701, CSP server B are according to the mark of the 2nd UCD server for including in file deletion requests to second
UCD server sends file deletion requests, such as server DelFileRequestt.Carrying in the file deletion requests need to delete
The mark of the file removed.
Specifically, the determination of CSP server B is corresponding with the mark of the file that need to be deleted before executing the step
The file that need to be deleted obtains the mark for uploading the 2nd UCD server of blocks of files of the file that need to be deleted by piecemeal.
Further, it is further included in the file deletion requests: the divided file number of blocks of the file that need to be deleted,
And the 2nd UCD server mark;The first CSP server determines text corresponding with the mark of the file that need to be deleted
Part obtains the mark of the 2nd UCD server by piecemeal specifically: the first CSP server determines that the file deletion is asked
It needs the divided file number of blocks of file deleted to be greater than 1 described in asking, and obtains from the file deletion requests described the
The mark of two UCD servers;Or
The determining file corresponding with the mark of the file that need to be deleted of the first CSP server is obtained by piecemeal
The mark of 2nd UCD server specifically: the first CSP server is obtained according to the mark of the file that need to be deleted and stored
The file that need to be deleted corresponding with the mark of the file that need to be deleted information, the packet of the file that need to be deleted
Contain: the mark of the file that need to be deleted, the mark of the 2nd UCD server and the divided file of file that need to be deleted
Number of blocks;The first CSP server determines that the divided file number of blocks of file that need to be deleted of storage is greater than 1, and
The mark of the 2nd UCD server is obtained from the information of the file that need to be deleted.
Step 702 or step 702 ', the 2nd UCD server to the 4th CSP server of storage file block send blocks of files
Removal request carries the 4th CSP server in the blocks of files removal request and deposits such as server DelChunkRequest
The mark of the file will of storage, the file deletion requests are used to indicate the 4th CSP server and delete and the 4th CSP clothes
The corresponding blocks of files of file block identification of device storage of being engaged in and the information of blocks of files.
Before executing this step, the 2nd UCD server according to the file that need to be deleted mark obtain storage with
The information of the corresponding file that need to be deleted of mark of the file that need to be deleted, the information of the file that need to be deleted include storage
The mark for the blocks of files that the mark of 4th CSP server of the blocks of files that need to delete file, each 4th CSP server store
Know.
Step 703 or step 703 ', after the 4th CSP server receives blocks of files removal request, according to the mark of blocks of files
Delete the information of the blocks of files of corresponding blocks of files and storage.And blocks of files is sent to the 2nd UCD server and deletes response clothes
Be engaged in device DelChunkResponse.Further, whether blocks of files is deleted also to delete comprising file in response and successfully be identified.
After step 704, the 2nd UCD server determine the corresponding response of blocks of files removal request for receiving sending, delete
The information for the file that the need of 2nd UCD server storage are deleted, and send file to CSP server B and delete response
CSPDelFileResponse, marker is carried in response, and mark file is successfully deleted;
Specifically, before the information for the file that the need for deleting the storage of the 2nd UCD server are deleted, the 2nd UCD server
It need to determine that the 4th all CSP servers returns blocks of files and deletes response, and blocks of files deletes response and contains file
The deleted mark of success.
Step 705, CSP server B send file to first terminal and delete response DelFileResponse, take in response
Tape identification position, mark file are deleted successfully.
As can be seen from the above embodiments, embodiment through the invention, terminal can not have to be directly connected to UCD service
Device, and in the case where being directly connected to CSP server, user (by downloading, can be deleted) by CSP server admin by being equipped with
The terminal of UCD client uploads to the file of CSP server by UCD server.To facilitate user management file, improves and use
Family experience.
Fig. 8 be it is provided in an embodiment of the present invention it is a kind of the method for file is provided, include the following steps:
Step 801, unified cloud disk UCD server receive the file that the first cloud service provider CSP server is sent and obtain
Request is taken, the file acquisition request carries the mark of original document;
Step 802, the original corresponding with the mark of the original document that storage is obtained according to the mark of the original document
The information of beginning file, the information of the original document include the mark of the 2nd CSP server of storage file block, the 2nd CSP clothes
Order of the file block identification and the blocks of files of business device storage in original document;
Step 803, according to the mark of the 2nd CSP server, from the of the mark instruction of the 2nd CSP server
Two CSP servers obtain blocks of files corresponding with the file block identification that the 2nd CSP server stores;
Step 804, the order according to the blocks of files obtained from the 2nd CSP server in original document, will
Each blocks of files obtained from the 2nd CSP server merges into the original document, and the original document is provided
To first terminal.
In addition, UCD server in Fig. 1-Fig. 7 process can also be performed (comprising first in the UCD server in the present embodiment
UCD server and the 2nd UCD server) execute either step, this will not be detailed here for the embodiment of the present invention.
UCD server is mentioned by the present embodiment, terminal can be made to pass through CSP server or obtain and serviced by UCD
Device uploads to the file of CSP server, to improve the experience of user.
Fig. 9 is the structural schematic diagram of CSP server provided in an embodiment of the present invention, comprising: receiving unit 901, determination obtain
Take unit 902, transmission unit 903, storage unit 904.Specifically
Receiving unit 901, for first terminal by user the CSP server registration information log in described in
After CSP server, and the CSP server is sent to during the first terminal offer business, receiving first terminal
File download request, carry the mark of original document in the file download request, and by the mark of the original document
It is sent to determining acquiring unit;The determining acquiring unit 902, the original document sent for receiving the receiving unit
Mark, determine that corresponding with the mark of original document original document by piecemeal, and obtains the upload original document
Blocks of files the first unified cloud disk UCD server mark, and the mark of the first UCD server is sent to transmission
Unit;The transmission unit 903, for receiving the mark for the first UCD server that the determining receiving unit is sent, Yi Jigen
File acquisition request, the file acquisition request are sent to the first UCD server according to the mark of the first UCD server
Carry the mark of the original document;The file acquisition request is used to indicate the first UCD server according to described original
The mark of file obtains the information of the original document of storage, and according to blocks of files corresponding second in the information of first beginning file
The mark of CSP server obtains blocks of files from the 2nd CSP server of the mark instruction of the 2nd CSP server, and by institute
The blocks of files for stating acquisition synthesizes original document;
The receiving unit is further used for receiving the file acquisition response that the first UCD server returns, and by institute
It states file acquisition response and is sent to the transmission unit, the transmission unit is further used for receiving what the receiving unit was sent
File acquisition response, and file acquisition response is sent to the first terminal, to indicate that the first terminal passes through institute
It states file acquisition response and obtains the original document.
Further, the CSP server further includes storage unit 904;The receiving unit 901 is further used for
Before receiving the file download request that the first terminal is sent, the inquiry request that the first terminal is sent is received, and will
The inquiry request is sent to the determining acquiring unit 902;The determining acquiring unit 902 is further used for connecing described in reception
The inquiry request that unit is sent is received, and the user is obtained in the registration information of the first CSP server according to the user
The storage unit storage file block message, the blocks of files information include the first UCD server mark and
The mark of original document belonging to blocks of files, and the mark of the mark of the original document and the first UCD server is sent out
Give the transmission unit 903;The transmission unit 903 is further used for receiving the original that the determining acquiring unit is sent
The mark of beginning file and the mark of the first UCD server, according to the mark of the first UCD server to described first
UCD server sends blocks of files inquiry request, includes original document belonging to the blocks of files in the blocks of files inquiry request
Mark;The receiving unit 901 is further used for receiving the letter for the original document that the first UCD server returns
Breath, the information of the original document of the return includes: the title of original document, the mark of original document and the first UCD server
Mark and the divided file number of blocks of original document, and the information of the original document is sent to the transmission unit
903 and the storage unit 904;The storage unit 904 is used to receive the information for the original document that the receiving unit is sent,
And the information of the storage original document;The transmission unit 903 is further used for receiving the original that the receiving unit is sent
The information of beginning file, and by the mark of the title of the original document in the information of the original document and the original document
It is sent to the first terminal, or the information of the original document is sent to the first terminal.
Further, the file block message further includes blocks of files marker;The transmission unit 903 is according to described
Before the mark of first UCD server sends blocks of files inquiry request to the first UCD server, the determining acquiring unit
Further determine that the blocks of files marker is original document segmentation mark.
Further, it is further included in the file download request: the divided file number of blocks of original document, and
The mark of the first UCD server;The determination of determining acquiring unit 902 is corresponding with the mark of the original document original
File obtains the mark of the first unified cloud disk UCD server by piecemeal specifically: the first CSP server determines institute
The divided file number of blocks of original document is stated greater than 1, and obtains the first UCD server from the file download request
Mark;Or, the determining acquiring unit 902 determine original document corresponding with the mark of the original document by piecemeal, and
Obtain the mark of the first unified cloud disk UCD server specifically: the first CSP server is according to the mark of the original document
Know the information for obtaining the original document corresponding with the mark of the original document of storage, the information of the original document includes:
The mark of original document and the mark and the divided file number of blocks of original document of the first UCD server;First CSP
Server determines that the divided file number of blocks of the original document is greater than 1, and institute is obtained from the information of the original document
State the mark of the first UCD server.
Further, the upload block that the receiving unit 901 is further used for receiving the first UCD server transmission is asked
It asks;The blocks of files letter for uploading blocks of files of the block request comprising the original document and the first UCD server generation
Breath and the user the first CSP server registration information;The storage unit 904 is further used for receiving institute
The upload block request for stating receiving unit transmission, stores the blocks of files and by the file block message and the user described
The registration information mapping storage of first CSP server.
Further, the receiving unit 901 is further used for the file deletion requests of first terminal transmission, the file
It is single to be sent to the determining acquisition by the mark that the file that need to be deleted is carried in removal request for the mark of the file that need to be deleted
Member;The determining acquiring unit 902 is further used for receiving the mark for the file that the need that the receiving unit is sent are deleted, and determines
The file that need to be deleted corresponding with the mark of the file that need to be deleted is obtained by piecemeal and is uploaded the file that need to be deleted
The mark of 2nd UCD server of blocks of files, and the mark of this 2nd UCD server is sent to transmission unit;It is described
Transmission unit 903 is further used for receiving the mark for the 2nd UCD server that the determining acquiring unit is sent, according to institute
The mark for stating the 2nd UCD server sends the file deletion requests to the 2nd UCD server, and the file deletion requests are used for
Indicate that the 2nd UCD server sends blocks of files to the 4th CSP server of the blocks of files for storing the file that need to be deleted
Removal request, and after receiving the blocks of files that the 4th CSP server returns and deleting response, it deletes the 2nd UCD server and deposits
The information for the file that the need of storage are deleted simultaneously returns to file deletion response to the first CSP server;The receiving unit 901 is further
The file for receiving the return of the 2nd UCD server deletes response, and the file is deleted response and is sent to the hair
Send unit;The transmission unit 902 is further used for receiving the file that the receiving unit is sent and deletes response, and to institute
It states first terminal and sends file deletion response.
Further, it is further included in the file deletion requests: the divided file number of blocks of the file that need to be deleted,
And the 2nd UCD server mark;The determining acquiring unit determines original corresponding with the mark of the file that need to be deleted
Beginning file obtains the mark of the 2nd UCD server by piecemeal specifically: determine needs to delete described in the file deletion requests
The divided file number of blocks of file be greater than 1, and obtain from the file deletion requests mark of the 2nd UCD server
Know;Or, the determining acquiring unit 902 determines that file corresponding with the mark of the file that need to be deleted by piecemeal, and obtains
The mark of 2nd UCD server specifically: the first CSP server is obtained according to the mark of the file that need to be deleted and stored
The file that need to be deleted corresponding with the mark of the file that need to be deleted information, the packet of the file that need to be deleted
Contain: the mark of the file that need to be deleted, the mark of the 2nd UCD server and the divided file of file that need to be deleted
Number of blocks;Determine that the divided file number of blocks of file that need to be deleted of storage is greater than 1, and from the file that need to be deleted
Information in obtain the mark of the 2nd UCD server.
In above-mentioned apparatus embodiment, storage unit can be memory (memerry or storage), be also possible to
Machine memory (RAM, random access memory) is also possible to read-only memory (ROM ,-ead Only Memory),
The embodiment of the present invention is it is not limited here.
Figure 10 be terminal provided in an embodiment of the present invention structural schematic diagram, comprising: transceiver 1001, memory 1002,
Processor 1003.Specifically
The transceiver 1001 is used to receive to be logged in by user in the registration information of the CSP server in first terminal
After the CSP server, and the CSP server receives first terminal to during the first terminal offer business
The file download request of transmission carries the mark of original document in the file download request;The memory 1002 is for depositing
Various programs and application are stored up, and execute the function of each program and application under the calling of the processor;The processor 1003
Various programs and application for calling memory to store, and determine original document corresponding with the mark of the original document
By piecemeal, the mark for uploading the first unified cloud disk UCD server of blocks of files of the original document is obtained;According to described
The mark of one UCD server sends file acquisition request to the first UCD server, and the file acquisition is requested described in carrying
The mark of original document;The file acquisition request is used to indicate the first UCD server according to the mark of the original document
Know the information for obtaining the original document of storage, and is serviced according to the 2nd CSP of storage file block in the information of the original document
The mark of device obtains blocks of files from the 2nd CSP server of the mark instruction of the 2nd CSP server, and by the acquisition
Blocks of files synthesize original document;The transceiver 1001 is further used for the file that the first UCD server returns and obtains
Response is taken, and file acquisition response is sent to the first terminal, to indicate that the first terminal passes through the file
It obtains response and obtains the original document.
In addition, processor 1003 can be also used for executing the CSP server or CSP of Fig. 1 to Fig. 7 description in embodiment of the method
Each step that the functional module that server includes executes, this will not be detailed here for the embodiment of the present invention.
Figure 11 is a kind of unified cloud disk UCD server provided in an embodiment of the present invention, including receiving unit 1101, is determined
Acquiring unit 1102, transmission unit 1103, storage unit 1104 and deletion unit 1105, specifically,
Receiving unit 1101, it is described for receiving the file acquisition request of the first cloud service provider CSP server transmission
File acquisition request carries the mark of original document;And the mark of the original document is sent to determining acquiring unit 1102;
The determining acquiring unit 1102 is used to receive the mark for the original document that the receiving unit is sent, according to
The mark of the original document obtains the information of the original document corresponding with the mark of the original document of storage, described original
The information of file includes the mark of the 2nd CSP server of storage file block, the file block identification of the 2nd CSP server storage with
And order of the blocks of files in original document;And the mark according to the 2nd CSP server, from the 2nd CSP
2nd CSP server of the mark instruction of server obtains corresponding with the file block identification that the 2nd CSP server stores
Blocks of files;And the order of the blocks of files and the blocks of files in original document is sent to the transmission unit
1103;
The transmission unit 1103 is used to receive the blocks of files that the determining acquiring unit is sent and the blocks of files exists
Order in original document is obtained each from the 2nd CSP server according to order of the blocks of files in original document
The blocks of files taken merges into the original document, and the original document is supplied to first terminal.
Further, the original document is supplied to first terminal by the transmission unit 1103 specifically:
File acquisition response is returned to the first CSP server, the file acquisition response carries the original document;It is described
File acquisition response, which is used to indicate the first CSP server and receives file acquisition response, is sent to described first eventually
End;Or, returning to file acquisition response to the first CSP server, the file acquisition response carries the original document and exists
The storage address of the UCD server;The file acquisition response is used to indicate the first CSP server and obtains the file
Response is taken to be sent to the first terminal, and the instruction first terminal obtains the original text according to the storage address
Part.
Further, the receiving unit 1101 passes through user in the registration information of the UCD server in second terminal
It is further used for receiving the file upload request that the second terminal is sent after logging in the UCD server, the file uploads
Request carries the size for the original document that user need to upload;
The determining acquiring unit 1102 is further used for obtaining the letter for the 3rd CSP server that the user's registration is crossed
Breath is determined according to the information of the 3rd CSP server and the size information of original document for uploading the original document
2nd CSP server of blocks of files;
The receiving unit 1101 is further used for receiving the original document that the second terminal is sent, and will be described original
File is sent to the transmission unit 1103;
The transmission unit 1102 is further used for receiving the original document that receiving unit 1101 is sent, and will be described
The blocks of files of original document is uploaded to the 2nd CSP server that the determining acquiring unit 1102 determines.
Further, the information of the 3rd CSP server includes the user in the 3rd CSP server
The size for the maximum file that free memory and the 3rd CSP server are supported;
The determining acquiring unit 1102 is true according to the information of the 3rd CSP server and the size information of original document
Determine the 2nd CSP server for uploading the blocks of files of original document specifically: it is described to determine that the free memory is greater than
The size of original document, and the size of the maximum file of the 3rd CSP server support is greater than the size of the original document
The 3rd CSP server as the 2nd CSP server for uploading blocks of files;The transmission unit 1103 is by the original text
The blocks of files of part is uploaded to the 2nd CSP server that the determining acquiring unit determines specifically: using original document as
Blocks of files is uploaded to the 2nd CSP server;Or, the determining acquiring unit 1102 is according to the 3rd CSP server
Information and the size information of original document determine that the 2nd CSP of the blocks of files for uploading the original document services implement body
Are as follows: determine that free memory is greater than at least two the 3rd CSP of the size for the maximum file that the 3rd CSP server is supported
Server is as the 2nd CSP server for uploading blocks of files, according to determining at least two the 2nd CSP server branch
The original document is divided at least two blocks of files by the size for the maximum file held, and the size of the blocks of files is less than described
The size for the maximum file that 2nd CSP server is supported;The transmission unit 1103 uploads the blocks of files of the original document
The 2nd CSP server determined to the determining acquiring unit specifically: upload at least two blocks of files respectively
To at least two the 2nd CSP server.
Further, the server further comprises storage unit 1104;
The storage unit 1104 is used to store the information of the original document, and the information of the original document includes: original
The file block identification of the divided file number of blocks of the mark of beginning file, original document and each blocks of files, and described in storage
Order of the mark and each blocks of files of 2nd CSP server of each blocks of files in original document.
Further, the transmission unit 1103 is further used for described in the storage stored according to the storage unit 1104
The mark of 2nd CSP server of blocks of files is by the mark of the UCD server, file block identification and blocks of files in original text
Order in part is sent to the 2nd CSP server.
Further, the server, which further includes, deletes unit 1105, and the receiving unit 1101 is further used for
The file deletion requests of the first CSP server transmission are received, the mark for the file that need to be deleted is carried in the file deletion requests;
The determining acquiring unit 1102 is further used for obtaining the storage unit storage according to the mark of the file that need to be deleted
The file that need to be deleted corresponding with the mark of the file that need to be deleted information, the information of the file that need to be deleted includes
Store the mark of the 4th CSP server of the blocks of files that need to delete file, the blocks of files of each 4th CSP server storage
Mark, and the information of the file that need to be deleted is sent to the transmission unit 1103;The transmission unit 1103 is further
For receiving the information for the file that the need that the determining acquiring unit is sent are deleted, according to according to the 4th CSP server
It identifies to the 4th CSP server and sends blocks of files removal request, carry the 4th CSP in the blocks of files removal request
The mark of the file will of server storage, the file deletion requests be used to indicate the 4th CSP server delete with it is described
The corresponding blocks of files of file block identification of 4th CSP server storage and the information of blocks of files;The receiving unit 1101 into one
It walks and deletes response for receiving the blocks of files that the 4th CSP server is sent;The deletion unit 1105 is described for deleting
The information of the file that need to be deleted of storage unit storage;The transmission unit 1103 is further used for servicing to the first CSP
Device returns to file and deletes response, and the file deletion response is used to indicate the first CSP server and the file is deleted response hair
It send to first terminal.
Figure 12 is the structural schematic diagram of UCD server provided in an embodiment of the present invention, comprising: transceiver 1201, memory
1202, processor 1203.
It is obtained specifically, the transceiver 1201 receives the file that the first cloud service provider CSP server is sent for device
Request is taken, the file acquisition request carries the mark of original document;The memory 1202 is for various programs and applies, and
The function of each program and application is executed under the calling of the processor;What the processor 1203 was used to that memory to be called to store
Various programs and application obtain the corresponding with the mark of the original document original of storage according to the mark of the original document
The information of file, the information of the original document include the mark of the 2nd CSP server of storage file block, the 2nd CSP service
Order of the file block identification and the blocks of files of device storage in original document, according to the mark of the 2nd CSP server
Know, is stored from the 2nd CSP server acquisition of the mark instruction of the 2nd CSP server with the 2nd CSP server
The corresponding blocks of files of file block identification;According to the blocks of files obtained from the 2nd CSP server in original document
Each blocks of files obtained from the 2nd CSP server is merged into the original document by order;
The transceiver 1201 is further used for the original document being supplied to first terminal.
In addition, the UCD server that processor 1203 can be also used for executing Fig. 1 to Fig. 7 description in embodiment of the method executes
Each step, this will not be detailed here for the embodiment of the present invention.
In the above embodiments, terminal can be various mobile terminals, such as plant whole smart phone, and tablet computer is mobile
Arrangement for reading etc..In the above-described embodiments, in the corresponding embodiment of especially Fig. 9 and Figure 11, CSP server and UCD server packet
The each device included is only divided according to the functional logic, but is not limited to the above division, as long as can be realized phase
The function of answering;In addition, the specific name of each device is also only for convenience of distinguishing each other, it is not intended to restrict the invention
Protection scope.The CSP server of Fig. 1-Fig. 7 and each functional module of UCD server or the function of each device can be by terminals
Processor run complete,
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto,
In the technical scope disclosed by the present invention, any changes or substitutions that can be easily thought of by anyone skilled in the art,
It should be covered by the protection scope of the present invention.Therefore, protection scope of the present invention should be with scope of protection of the claims
Subject to.
Claims (16)
1. a kind of document down loading method, which is characterized in that in first terminal by user in the first cloud service provider server
Registration information log in the first cloud service provider server after, and the first cloud service provider server is to institute
During first terminal offer business is provided, this method comprises:
The first cloud service provider server receives the file download request that the first terminal is sent, the file download
The mark of original document is carried in request;
The first cloud service provider server determines that the original document corresponding with the mark of the original document is divided
Block obtains the mark for uploading the first unified cloud disk server of blocks of files of the original document;
The first cloud service provider server is united according to the mark of the described first unified cloud disk server to described first
One cloud disk server sends file acquisition request, and the file acquisition request carries the mark of the original document;The text
Part acquisition request is used to indicate the institute that the described first unified cloud disk server obtains storage according to the mark of the original document
The information of original document is stated, and according to the second cloud service provider server of storage file block in the information of the original document
Mark, from the second cloud service provider server mark instruction the second cloud service provider server obtain file
Block, and the blocks of files of the acquisition is synthesized into the original document;
The first cloud service provider server receives the file acquisition response that the described first unified cloud disk server returns,
And file acquisition response is sent to the first terminal, to indicate that the first terminal is responded by the file acquisition
Obtain the original document.
2. the method as described in claim 1, which is characterized in that the first terminal obtains institute by file acquisition response
State original document specifically:
The file acquisition response carries the original document, and the first terminal obtains described original from file acquisition response
File;Or
The file acquisition response carries the original document in the storage address of the described first unified cloud disk server;It is described
First terminal obtains the original document from the described first unified cloud disk server according to the storage address.
3. method according to claim 1 or 2, which is characterized in that the file download for receiving the first terminal and sending
Before request, this method further comprises:
Receive the inquiry request that the first terminal is sent;
The user is obtained described first in the registration information of the first cloud service provider server according to the user
The file block message of cloud service provider server storage, the blocks of files information include to upload the described first unified cloud disk clothes
The mark of the original document belonging to the mark and blocks of files of business device;
Blocks of files is sent to the described first unified cloud disk server according to the mark of the described first unified cloud disk server to look into
Ask request, the mark comprising the original document belonging to the blocks of files in the blocks of files inquiry request;
Receive the information for the original document that the described first unified cloud disk server returns, the original text of the return
The information of part includes: the title of the original document, the mark of the original document and the first unified cloud disk server
Mark and the divided file number of blocks of the original document;
The mark of the title of the original document and the original document is sent to the first terminal, and stores the return
The original document information;Or the information of the original document is sent to the first terminal.
4. method as claimed in claim 3, it is characterised in that: the file block message further includes blocks of files marker;
The mark according to the described first unified cloud disk server sends file to the described first unified cloud disk server
Before block inquiry request, the first cloud service provider server further determines that the blocks of files marker is original document
Segmentation mark.
5. method as claimed in claim 3, it is characterised in that: further included in the file download request: described original
The mark of the divided file number of blocks of file and the first unified cloud disk server;First cloud service provides
The determining original document corresponding with the mark of the original document of quotient's server obtains the described first unified cloud by piecemeal
The mark of disk server specifically: the first cloud service provider server determines the divided file of the original document
Number of blocks is greater than 1, and the mark of the described first unified cloud disk server is obtained from the file download request;Or
The first cloud service provider server determine original document corresponding with the mark of the original document by piecemeal, and
Obtain the mark of the described first unified cloud disk server specifically: the first cloud service provider server is according to the original
The mark of beginning file obtains the information of the exhaled original document corresponding with the mark of the original document of storage, the original text
The information of part includes: the mark of the original document and mark and the original text of the described first unified cloud disk server
The divided file number of blocks of part;The first cloud service provider server determines the divided blocks of files of the original document
Quantity is greater than 1, and the mark of the described first unified cloud disk server is obtained from the information of the original document.
6. the method as described in claim 1, which is characterized in that this method further comprises:
Receive the upload block request that the described first unified cloud disk server is sent;The upload block request includes the original text
The blocks of files of part, the file block message of the first unified cloud disk server generation and the user are in first cloud
The registration information of service provider server;
The blocks of files is stored, and by the file block message and the user in the first cloud service provider service
The registration information mapping storage of device.
7. the method as described in claim 1, which is characterized in that this method further comprises:
The file deletion requests that first terminal is sent are received, the mark for the file that need to be deleted is carried in the file deletion requests;
The first cloud service provider server determines the file that need to be deleted corresponding with the mark of the file that need to be deleted
By piecemeal, and obtain the mark of the second unified cloud disk server of the blocks of files for uploading the file that need to be deleted;
The file is sent to the second unified cloud disk server according to the mark of the described second unified cloud disk server to delete
Request, the file deletion requests are used to indicate the described second unified cloud disk server to the storage file that need to be deleted
4th cloud service provider server of blocks of files sends blocks of files removal request, and is receiving the 4th cloud service provider
After the blocks of files that server returns deletes response, the file that the need that the described second unified cloud disk server stores are deleted is deleted
The file information simultaneously returns to file deletion response to the first cloud service provider server;
The first cloud service provider server receives the file that the described second unified cloud disk server returns and deletes
Response sends the file to the first terminal and deletes response.
8. the method for claim 7, which is characterized in that further include: need to delete in the file deletion requests
The mark of the divided file number of blocks of file and the second unified cloud disk server;The first cloud service provider clothes
The determining file corresponding with the mark of the file that need to be deleted of device be engaged in by piecemeal, and obtains the second unified cloud disk server
Mark specifically: the first cloud service provider server determines the file quilt for needing to delete described in the file deletion requests
The file number of blocks of segmentation is greater than 1, and the mark of the described second unified cloud disk server is obtained from the file deletion requests
Know;Or the first cloud service provider server determine file corresponding with the mark of the file that need to be deleted by piecemeal,
And obtain the mark of the described second unified cloud disk server specifically: the first cloud service provider server is according to
The mark for the file that need to be deleted obtains the information of the file that need to be deleted corresponding with the mark of the file that need to be deleted of storage,
The information of the file that need to be deleted includes: the mark of the file that need to be deleted, the second unified cloud disk server
Mark and the divided file number of blocks of file that need to be deleted;The first cloud service provider server determines storage
The divided file number of blocks of file that need to be deleted be greater than 1, and obtain institute from the information of the file that need to be deleted
State the mark of the second unified cloud disk server.
9. a kind of first cloud service provider server characterized by comprising
Receiving unit, for being logged in by user in the registration information of the first cloud service provider server in first terminal
After the first cloud service provider server, and the first cloud service provider server is provided to the first terminal
During business, the file download request that first terminal is sent is received, carries original document in the file download request
Mark, and the mark of the original document is sent to determining acquiring unit;
The determining acquiring unit, for receiving the mark for the original document that the receiving unit is sent, it is determining with it is described
The corresponding original document of the mark of original document is by piecemeal, and obtains the first of the blocks of files for uploading the original document
The mark of unified cloud disk server, and the mark of the described first unified cloud disk server is sent to transmission unit;
The transmission unit, for receiving the mark for the described first unified cloud disk server that the determining receiving unit is sent
Know, and file is sent to the described first unified cloud disk server according to the mark of the described first unified cloud disk server and is obtained
Request is taken, the file acquisition request carries the mark of the original document;File acquisition request is used to indicate described the
One unified cloud disk server obtains the information of the original document of storage according to the mark of the original document, and according to institute
The mark for stating the corresponding second cloud service provider server of blocks of files in the information of original document is mentioned from second cloud service
Blocks of files is obtained for the second cloud service provider server of the mark instruction of quotient's server, and by the file of the acquisition
Block synthesizes the original document;
The receiving unit is further used for receiving the file acquisition response that the described first unified cloud disk server returns, and will
The file acquisition response is sent to the transmission unit, and the transmission unit is further used for receiving the receiving unit transmission
File acquisition response, and by the file acquisition response be sent to the first terminal, to indicate that the first terminal passes through
The file acquisition response obtains the original document.
10. server as claimed in claim 9, which is characterized in that the server further includes storage unit;
The receiving unit is further used for before receiving the file download request that the first terminal is sent, and receives described the
The inquiry request that one terminal is sent, and the inquiry request is sent to the determining acquiring unit;
The determining acquiring unit is further used for receiving the inquiry request that the receiving unit is sent, and is existed according to the user
The registration information of the first cloud service provider server obtains the blocks of files letter that the user stores in the storage unit
Breath, the blocks of files information include described original belonging to the mark and blocks of files of the described first unified cloud disk server
The mark of file, and the mark of the mark of the original document and the described first unified cloud disk server is sent to the hair
Send unit;
The transmission unit is further used for receiving the mark of the original document that the determining acquiring unit is sent and described
The mark of first unified cloud disk server, according to the mark of the described first unified cloud disk server to the described first unified cloud
Disk server sends blocks of files inquiry request, includes described original belonging to the blocks of files in the blocks of files inquiry request
The mark of file;
The receiving unit is further used for receiving the letter for the original document that the described first unified cloud disk server returns
Breath, the information of the original document of the return includes: the title of the original document, the mark of the original document and institute
State the mark and the divided file number of blocks of original document of the first unified cloud disk server, and by the original document
Information is sent to the transmission unit and the storage unit;
The storage unit is used to receive the information for the original document that the receiving unit is sent, and the storage original document
Information;
The transmission unit is further used for receiving the information for the original document that the receiving unit is sent, and by the original
The title of the original document in the information of beginning file and the mark of the original document are sent to the first terminal, or will
The information of the original document is sent to the first terminal.
11. server as claimed in claim 10, which is characterized in that the file block message further includes file block identification
Position;
The transmission unit is according to the mark of the described first unified cloud disk server to the described first unified cloud disk server
Before sending blocks of files inquiry request, the determining acquiring unit further determines that the blocks of files marker for original document point
Cut mark.
12. the server as described in claim 9-11 is any, it is characterised in that:
It is further included in the file download request: the divided file number of blocks of the original document and described first
The mark of unified cloud disk server;The determining acquiring unit determination is corresponding with the mark of the original document described original
File obtains the mark of the described first unified cloud disk server by piecemeal specifically: the first cloud service provider clothes
Business device determines that the divided file number of blocks of the original document is greater than 1, and obtains from the file download request described the
The mark of one unified cloud disk server;Or
The determining original document corresponding with the mark of the original document of determining acquiring unit obtains institute by piecemeal
State the mark of the first unified cloud disk server specifically: the first cloud service provider server is according to the original document
Mark obtain storage the original document corresponding with the mark of the original document information, the letter of the original document
Breath includes: the mark of the original document and the mark of the described first unified cloud disk server and the original document are divided
The file number of blocks cut;The first cloud service provider server determines that the divided file number of blocks of the original document is big
In 1, and obtain from the information of the original document mark of the described first unified cloud disk server.
13. server as claimed in claim 10, which is characterized in that
The receiving unit is further used for receiving the upload block request that the described first unified cloud disk server is sent;On described
The file block message of blocks of files of the block request comprising the original document and the first unified cloud disk server generation is passed,
And the user is in the registration information of the first cloud service provider server;
The storage unit is further used for receiving the upload block request that the receiving unit is sent, store the blocks of files and
By the file block message and the user the first cloud service provider server registration information mapping storage.
14. server as claimed in claim 9, which is characterized in that
The receiving unit is further used for receiving the file deletion requests that first terminal is sent, and takes in the file deletion requests
The mark of the file that need to be deleted is sent to the determining acquiring unit by the mark for the file that band need to be deleted;
The determining acquiring unit is further used for receiving the mark for the file that the need that the receiving unit is sent are deleted, determine with
The corresponding file that need to be deleted of mark of the file that need to be deleted obtains the text for uploading the file that need to be deleted by piecemeal
The mark of the unified cloud disk server of the second of part block, and the mark of the described second unified cloud disk server is sent to transmission
Unit;
The transmission unit is further used for receiving the described second unified cloud disk server that the determining acquiring unit is sent
Mark, the text is sent to the described second unified cloud disk server according to the mark of the described second unified cloud disk server
Part removal request, the file deletion requests, which are used to indicate the described second unified cloud disk server, described need to delete to storing
4th cloud service provider server of the blocks of files of file sends blocks of files removal request, and is receiving the 4th cloud service
After the blocks of files that provider server returns deletes response, delete what the need that the described second unified cloud disk server stores were deleted
The information of file simultaneously returns to file deletion response to the first cloud service provider server;
The receiving unit is further used for receiving the file deletion response that the described second unified cloud disk server returns,
And the file is deleted into response and is sent to the transmission unit;
The transmission unit is further used for receiving the file that the receiving unit is sent and deletes response, and to described first
Terminal sends file and deletes response.
15. server as claimed in claim 14, which is characterized in that further included in the file deletion requests: need to delete
The mark of the divided file number of blocks of the file removed and the second unified cloud disk server;The determining acquisition is single
The determining original document corresponding with the mark of the file that need to be deleted of member obtains the described second unified cloud magnetic by piecemeal
The mark of disk server specifically: determine the divided file number of blocks of file for needing to delete described in the file deletion requests
Greater than 1, and obtain from the file deletion requests mark of the described second unified cloud disk server;Or
The determining acquiring unit determines that file corresponding with the mark of the file that need to be deleted by piecemeal, and obtains described the
The mark of two unified cloud disk servers specifically: the first cloud service provider server is according to the file that need to be deleted
Mark obtain storage corresponding with the mark of the file that need to the be deleted file that need to be deleted information, it is described to delete
The information of file includes: the mark of the file that need to be deleted, the mark of the second unified cloud disk server and described
The divided file number of blocks of the file that need to be deleted;Determine that the divided file number of blocks of file that need to be deleted of storage is big
In 1, and obtain from the information of the file that need to be deleted the mark of the described second unified cloud disk server.
16. a kind of cloud service provider server characterized by comprising transceiver, memory and processor;
The transceiver is stepped on by user in the registration information of the cloud service provider server for receiving in first terminal
After recording the cloud service provider server, and the cloud service provider server provides business to the first terminal
In the process, the file download request that first terminal is sent is received, the mark of original document is carried in the file download request;
The memory executes each program and application for storing various programs and application under the calling of the processor
Function;
The various programs and application that the processor is used to that memory to be called to store, and the determining mark with the original document
The corresponding original document obtains the first unified cloud disk server of the blocks of files for uploading the original document by piecemeal
Mark;File acquisition is sent to the described first unified cloud disk server according to the mark of the described first unified cloud disk server
Request, the file acquisition request carry the mark of the original document;The file acquisition request is used to indicate described first
Unified cloud disk server obtains the information of the original document of storage according to the mark of the original document, and according to described
The mark of second cloud service provider server of storage file block in the information of original document is provided from second cloud service
The second cloud service provider server of the mark instruction of quotient's server obtains blocks of files, and by the blocks of files of the acquisition
Synthesize the original document;
The transceiver is further used for the file acquisition response that the described first unified cloud disk server returns, and by the text
Part obtains response and is sent to the first terminal, to indicate that the first terminal obtains the original by file acquisition response
Beginning file.
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2013/078501 WO2014205839A1 (en) | 2013-06-29 | 2013-06-29 | Method and apparatus for downloading file |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104969532A CN104969532A (en) | 2015-10-07 |
CN104969532B true CN104969532B (en) | 2018-12-07 |
Family
ID=52140906
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201380000818.7A Active CN104969532B (en) | 2013-06-29 | 2013-06-29 | A kind of method and apparatus of file download |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN104969532B (en) |
WO (1) | WO2014205839A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110661829B (en) * | 2018-06-28 | 2021-09-21 | 杭州海康威视系统技术有限公司 | File downloading method and device, client and computer readable storage medium |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102685223A (en) * | 2012-04-28 | 2012-09-19 | 广州市动景计算机科技有限公司 | Cloud-storage-based file processing method and system |
CN102833294A (en) * | 2011-06-17 | 2012-12-19 | 阿里巴巴集团控股有限公司 | File processing method and system based on cloud storage, and server cluster system |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8799322B2 (en) * | 2009-07-24 | 2014-08-05 | Cisco Technology, Inc. | Policy driven cloud storage management and cloud storage policy router |
CN101997924A (en) * | 2010-11-22 | 2011-03-30 | 杨文军 | Cloud storage file transfer protocol (CFTP) |
-
2013
- 2013-06-29 CN CN201380000818.7A patent/CN104969532B/en active Active
- 2013-06-29 WO PCT/CN2013/078501 patent/WO2014205839A1/en active Application Filing
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102833294A (en) * | 2011-06-17 | 2012-12-19 | 阿里巴巴集团控股有限公司 | File processing method and system based on cloud storage, and server cluster system |
CN102685223A (en) * | 2012-04-28 | 2012-09-19 | 广州市动景计算机科技有限公司 | Cloud-storage-based file processing method and system |
Also Published As
Publication number | Publication date |
---|---|
WO2014205839A1 (en) | 2014-12-31 |
CN104969532A (en) | 2015-10-07 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103731451B (en) | A kind of method and system that file uploads | |
CN103577500B (en) | Distributed file system carries out the method and the distributed file system of data processing | |
CN103475682B (en) | File transfer method and file transfer equipment | |
CN106302445B (en) | Method and apparatus for handling request | |
CN103944944B (en) | Method, electronic equipment and the system of sharing web page link | |
CN106933872A (en) | A kind of method and device that cloud storage service is accessed by traditional file systemses interface | |
CN110278187A (en) | Multiple terminals single-point logging method, system, sync server and medium | |
CN106357539B (en) | A kind of data capture method and equipment | |
CN103685590B (en) | Obtain the method and system of IP address | |
US20050038874A1 (en) | System and method for downloading data using a proxy | |
CN101499071A (en) | Device and method for creating and using customized uniform resource locator | |
CN103547339B (en) | File uploading method, client side and server side | |
CN107707616A (en) | A kind of data transmission method and system | |
CN104618388B (en) | Fast registration login method and corresponding resetting server, information server | |
CN110557284A (en) | data aggregation method and device based on client gateway | |
CN104410660A (en) | Method and device of downloading multimedia resources as well as router and server | |
CN107181779A (en) | Processing method, the device and system of access request | |
JP2013504806A (en) | Method, apparatus and system for file transfer based on file directory | |
CN105554136B (en) | Backup Data restoring method, apparatus and system | |
CN109561054A (en) | A kind of data transmission method, controller and access device | |
CN103368897B (en) | The method of delivery applications program, Apparatus and system | |
CN103841157B (en) | Sharing files device and method | |
CN102790806B (en) | Method and device for downloading courseware based on http (hyper text transport protocol) | |
CN106027620A (en) | Data migration system based on cloud computing | |
CN105099735B (en) | A kind of method and system for obtaining magnanimity more detailed logging |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20211222 Address after: 450046 Floor 9, building 1, Zhengshang Boya Plaza, Longzihu wisdom Island, Zhengdong New Area, Zhengzhou City, Henan Province Patentee after: Super fusion Digital Technology Co.,Ltd. Address before: 518129 Bantian HUAWEI headquarters office building, Longgang District, Guangdong, Shenzhen Patentee before: HUAWEI TECHNOLOGIES Co.,Ltd. |