CN104969532A - Method and apparatus for downloading file - Google Patents

Method and apparatus for downloading file Download PDF

Info

Publication number
CN104969532A
CN104969532A CN201380000818.7A CN201380000818A CN104969532A CN 104969532 A CN104969532 A CN 104969532A CN 201380000818 A CN201380000818 A CN 201380000818A CN 104969532 A CN104969532 A CN 104969532A
Authority
CN
China
Prior art keywords
servers
file
original document
mark
csp
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.)
Granted
Application number
CN201380000818.7A
Other languages
Chinese (zh)
Other versions
CN104969532B (en
Inventor
秦晋
狄龙
谢军安
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
XFusion Digital Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Publication of CN104969532A publication Critical patent/CN104969532A/en
Application granted granted Critical
Publication of CN104969532B publication Critical patent/CN104969532B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

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

Abstract

In the embodiments of the present application, in a process in which a terminal uses a service provided by a CSP server, the terminal does not need to additionally establish a connection to a UCD server, and the terminal can obtain, through a connection to the CSP server, a file uploaded by a user through the UCD server and divided into blocks, and accordingly, a process of additionally establishing, by the terminal, a connection to the UCD server is avoided, and operations of a user are simplified, thereby improving user experience.

Description

METHOD AND APPARATUS FOR DOWNLOADING FILE
The present invention relates to field of cloud calculation, more particularly to a kind of method and apparatus of file download for a kind of method and apparatus technical field of file download.Background technology cloud storage service refers to that server provides a user the service of the file management facilities such as the storage of file, access, backup, shared.User can regard server as one hard disk being placed on network or Dropbox, no matter anywhere, pass through internet, you can management, the file of edit and storage on the server.
In the prior art, user can be in unified cloud disk(Unified cloud disk, UCD) in system to different cloud service providers(Cloud service provider, C SP) registration after, and registered at UCD server UCD servers, and provide the relevant information that user registers at CSP servers to UCD servers, the username and password that such as user registers at CSP servers, so that the CSP servers user that UCD servers can be registered according to log-on message login user of the user at CSP servers pass through UCD clients(UCD Client), send file operation requests to UCD servers(As uploaded, download, change filename etc.).
Such as, user uploads a file by UCD clients to UCD servers, and UCD server ends can select a suitable CSP according to certain strategy in user chartered CSP, and specific strategy can be:Such as maximum CSP servers of current storage capacity, the fastest CSP servers of current transmission, and this file is really stored in the Dropbox for the CSP servers selected by UCD servers.For user, only know that file is stored in the CSP devices of user's registration in advance, but do not know which CSP server be stored on earth.Such as, user uploads 2 files by UCD clients, and both of these documents has been respectively stored at CSP server As and CSP servers C by UCD servers, it is also possible to which both of these documents is had a CSP server simultaneously.
In addition, user is sometimes by a file division into different blocks of files, and different equipment is arrived into different blocks of files storages(Such as server)In.Accordingly even when a blocks of files is stolen, due to that can not obtain The alternative document block of this document is obtained, whole file still can not be obtained, so as to ensure that this document security.Such as existing is two blocks of files by a file division, and two blocks of files are stored respectively on a different server, one blocks of files is the sensitive data in file, another blocks of files is the general data in file, so as to ensure that the security of file by the method for file division.In another scene, user to big file it is also possible to carry out piecemeal storage.
However, when such as being stored by UCD servers selection CSP servers to blocks of files, the different blocks of files of identical file are probably stored at different CSP servers.Therefore, when in the Dropbox that the different blocks of files of identical file are stored in different CSP servers, user terminal can not obtain the file of storage when setting up and being connected with CSP servers from CSP servers, and after can only being separately connected by terminal with the foundation of UCD servers, whole file is obtained from UCD servers.So as to cause user to operate numerous Suo and inconvenience, experience not high.The content of the invention
The method and apparatus for the file download that embodiments of the invention are provided, can cause terminal logging in CSP servers after the business provided using CSP servers, file is downloaded from by CSP servers.
The just blunt first aspect according to the embodiment of the present invention, a kind of document down loading method, first terminal by user after the log-on message of the first cloud service provider CSP servers logs in the first CSP servers, and the first CSP servers, to during the first terminal offer business, this method includes:The first CSP servers receive the file download request that the first terminal is sent, and the mark of original document is carried in the file download request;The first CSP servers determine that original document corresponding with the mark of the original document, by piecemeal, obtains the mark of the first unified cloud disk UCD servers of the blocks of files for uploading the original document;The first CSP servers send file acquisition request according to the mark of the first UCD servers to the first UCD servers, and the file acquisition request carries the mark of the original document;The file acquisition is asked for indicating that the first UCD servers obtain the information of the original document of storage according to the mark of the original document, and according to the mark of the 2nd CSP servers of storage file block in the information of the original document, second indicated from the mark of the 2nd CSP servers CSP servers obtain blocks of files, and the blocks of files of the acquisition is synthesized into original document;The first CSP servers receive the file acquisition response that the first UCD servers are returned, and file acquisition response is sent into the first terminal, to indicate that the first terminal obtains the original document by file acquisition response.
First with reference to first aspect present invention is possible, and the first terminal obtains the original document by file acquisition response and is specially:The 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 storage address of the original document in the first UCD servers;The first terminal obtains the original document according to the storage address from the first UCD servers.
Possible with reference to the first aspect of the embodiment of the present invention or first possible second, before the file download request for receiving the first terminal transmission, this method further comprises:Receive the inquiry request that the first terminal is sent;File block message of the user in the first CSP server storages is obtained in the log-on message of the first CSP servers according to the user, the blocks of files packet is containing the mark for uploading the original document belonging to the mark and blocks of files of the first UCD servers;The mark that the original document belonging to the blocks of files is included in blocks of files inquiry request, the blocks of files inquiry request is sent to the first UCD servers according to the mark of the first UCD servers;The information for the original document that the first UCD servers are returned is received, the packet of the original document of the return contains:The title of original document, the divided file number of blocks of the mark and original document of the mark of original document and the first UCD servers;The mark of the title of the original document and the original document is sent to the first terminal, and stores the information of the original document of the return;Or the information of the original document is sent to the first terminal.
Second the possible 3rd with reference to the first aspect of the embodiment of the present invention is possible, and the file block message further includes blocks of files flag;The mark according to the first UCD servers is sent to the first UCD servers before blocks of files inquiry request, and the first CSP servers further determine that the blocks of files flag splits mark for original document.
The second possible or the 3rd the possible 4th possible, text with reference to the first aspect of the embodiment of the present invention Further included in part download request:The divided file number of blocks of original document, and the first UCD servers mark;The first CSP servers determine that original document corresponding with the mark of the original document is specially by piecemeal, and the mark of the first unified cloud disk UCD servers of acquisition:The first CSP servers determine that the divided file number of blocks of the original document is more than 1, and obtain the marks of the first UCD servers from file download request;Or, the first CSP servers determine that original document corresponding with the mark of the original document is specially by piecemeal, and the mark of the first unified cloud disk UCD servers of acquisition:The first CSP servers obtain the information of the corresponding original document of mark with the original document of storage according to the mark of the original document, and the packet of the original document contains:The mark of original document and the mark and the divided file number of blocks of original document of the first UCD servers;The first CSP servers determine that the divided file number of blocks of the original document is more than 1, and obtain from the information of the original document mark of the first UCD servers.
Any of the above-described possible 5th with reference to 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 servers are sent;The log-on message that blocks of files of the block request bag containing the original document, the file block message of the first UCD servers generation and the user are uploaded in the first CSP servers;The blocks of files is stored, and the file block message and the user are stored in the log-on message mapping of the first CSP servers.
Any of the above-described possible 6th with reference to first aspect of the embodiment of the present invention is possible, and this method further comprises:
Receive the mark that the file that need to be deleted is carried in the file deletion requests that first terminal is sent, the file deletion requests;
The first CSP servers determine 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 2nd UCD servers of the blocks of files for uploading the file that need to be deleted;The file deletion requests are sent to the 2nd UCD servers according to the mark of the 2nd UCD servers, the file deletion requests are used to indicate that the 2nd UCD servers send blocks of files removal request to the 4th CSP servers of the blocks of files for storing the file that need to be deleted, and are receiving the 4th CSP After the blocks of files deletion that server is returned is responded, delete the fileinfo of the file of the need deletion of the 2nd UCD server storages and return to file deletion response to the first CSP servers;
The first CSP servers receive the file deletion response that the 2nd UCD servers are returned, and delete and respond to the first terminal transmission file.
The the 6th the possible 7th with reference to first aspect of the embodiment of the present invention is possible, is further included in the file deletion requests:The divided file number of blocks of file that need to be deleted, and the 2nd UCD servers mark;The first CSP servers determine that file corresponding with the mark of the file that need to be deleted is specially by piecemeal, and the mark of the 2nd UCD servers of acquisition:The first CSP servers determine to need the divided file number of blocks of file deleted to be more than 1 described in the file deletion requests, and obtain from the file deletion requests mark of the 2nd UCD servers;Or, the first CSP servers determine that file corresponding with the mark of the file that need to be deleted is specially by piecemeal, and the mark of the 2nd UCD servers of acquisition:The first CSP servers obtain the information of the file that need to be deleted 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, and the packet of the file that need to be deleted contains:Mark, the mark of the 2nd UCD servers and the divided file number of blocks of the file that need to be deleted of the file that need to be deleted;The first CSP servers determine that the divided file number of blocks of the file that need to be deleted of storage is more than 1, and obtain from the information of the file that need to be deleted the mark of the 2nd UCD servers.
Second aspect of the embodiment of the present invention provides a kind of file providing method, including:Unified cloud disk UCD servers receive the file acquisition request that the first cloud service provider CSP servers are sent, and the file acquisition request carries the mark of original document;The information of the corresponding original document of mark with the original document of storage is obtained according to the mark of the original document, the mark of 2nd CSP servers of the information of the original document including storage file block, the order of the file block identification and the blocks of files of the 2nd CSP server storages in original document;According to the mark of the 2nd CSP servers, the 2nd CSP servers indicated from the mark of the 2nd CSP servers obtain blocks of files corresponding with the file block identification of the 2nd CSP server storages;According to the order from the blocks of files of the 2nd CSP servers acquisition in original document, the blocks of files that each is obtained from the 2nd CSP servers is merged into the original document, And the original document is supplied to first terminal.
First with reference to second aspect of the embodiment of the present invention is possible, described to be supplied to the first terminal to include the original document:File acquisition response is returned to the first CSP servers, the file acquisition response carries the original document;The file acquisition is responded is sent to the first terminal for indicating that the first CSP servers receive the file acquisition response;Or, file acquisition response is returned to the first CSP servers, the file acquisition response carries storage address of the original document in the UCD servers;The file acquisition is responded is sent to the first terminal for indicating that the first CSP servers respond the file acquisition, and indicates that the first terminal obtains the original document according to the storage address.
With reference to second aspect of the embodiment of the present invention or first it is possible second may, the UCD servers second terminal by user the UCD servers log-on message log in after, this method further comprises:The file upload request that the second terminal is sent is received, the file upload request carries the size for the original document that user need to upload;Obtain the information for the 3rd CSP servers that the user's registration is crossed;The 2nd CSP servers of the blocks of files for uploading the original document are determined according to the size information of the information of the 3rd CSP servers and original document, and after the original document that the second terminal is sent is received, the blocks of files of the original document is uploaded to the 2nd CSP servers.
Second the possible 3rd with reference to second aspect of the embodiment of the present invention is possible, and the packet of the 3rd CSP servers contains the size for the maximum file that the user supports in the free memory of the 3rd CSP servers and the 3rd CSP servers;It is described to determine that the 2nd CSP servers of the blocks of files for uploading original document are specially according to the information of the 3rd CSP servers and the size information of original document:Determine that the free memory is more than the size of the original document, and the size of the maximum file of the 3rd CSP servers support is used as the 2nd CSP servers for uploading blocks of files more than the 3rd CSP servers of the size of the original document;It is described blocks of files is uploaded to the 2nd CSP servers to be specially:The 2nd CSP servers are uploaded to using original document as blocks of files;Or, described determine that the 2nd CSP servers of the blocks of files for uploading the original document are specially according to the information of the 3rd CSP servers and the size information of original document:Determine that free memory is more than at least two the 3rd CSP servers of the size for the maximum file that the 3rd CSP servers are supported as uploading blocks of files 2nd CSP servers, the original document is divided at least two blocks of files by the size for the maximum file supported according at least two the 2nd CSP servers of determination, and at least two blocks of files is uploaded at least two the 2nd CSP servers respectively, the size of the blocks of files is less than the size for the maximum file that the 2nd CSP servers are supported.
With reference to second aspect of the embodiment of the present invention second the possible 3rd may, it is described be uploaded to the 2nd CSP servers after the original document that the second terminal is sent is received and by the blocks of files of the original document before, this method further comprises:The information of the original document is stored, the information of the original document includes:The divided file number of blocks of the mark of original document, original document, and each blocks of files file block identification, and the 2nd CSP servers of storage each blocks of files mark, and order of each blocks of files in original document.
The the 3rd the possible 4th with reference to second aspect of the embodiment of the present invention is possible, and this method further comprises:The order of the mark, file block identification and blocks of files of the UCD servers in original document is sent to by the 2nd CSP servers according to the mark of the 2nd CSP servers of the storage blocks of files.
Any of the above-described possible 5th with reference to second aspect of the embodiment of the present invention is possible, and this method further comprises:Receive the mark that the file that need to be deleted is carried in the file deletion requests of the first CSP servers transmission, the file deletion requests;Obtain the information of the file that need to be deleted 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, the identifying of the 4th CSP servers of the packet of the file that need to the be deleted blocks of files that need to delete file containing storage, the mark of the blocks of files of each 4th CSP server storages;According to the mark according to the 4th CSP servers blocks of files removal request is sent to the 4th CSP servers, the mark of the file will of the 4th CSP server storages is carried in the blocks of files removal request, the file deletion requests are used for the information for indicating that the 4th CSP servers delete corresponding with the file block identification of the 4th CSP server storages blocks of files and blocks of files;Receive the blocks of files deletion response that the 4th CSP servers are sent;The information of the file that need to be deleted of the UCD server storages is deleted, and file is returned to the first CSP servers and deletes response, the file, which deletes response, to be used to indicate that the first CSP servers send file deletion response to first terminal. The third aspect of the embodiment of the present invention, which provides a kind of cloud service provider CSP servers, to be included:Receiving unit, for first terminal by user after the log-on message of the CSP servers logs in the CSP servers, and the CSP servers are to during the first terminal offer business, receive the file download request that first terminal is sent, the mark of original document is carried in the file download request, and the mark of the original document is sent to determination acquiring unit;The determination acquiring unit, mark for receiving the original document that the receiving unit is sent, it is determined that original document corresponding with the mark of the original document is by piecemeal, and the mark of the first unified cloud disk UCD servers of the blocks of files for uploading the original document is obtained, and the mark of the first UCD servers is sent to transmitting element;The transmitting element, mark for receiving the first UCD servers that the determination receiving unit is sent, and asked according to the mark of the first UCD servers to the first UCD servers transmission file acquisition, the file acquisition request carries the mark of the original document;The file acquisition is asked for indicating that the first UCD servers obtain the information of the original document of storage according to the mark of the original document, and according to the mark of the corresponding 2nd CSP servers of blocks of files in the information of first beginning file, the 2nd CSP servers indicated from the mark of the 2nd CSP servers obtain blocks of files, and the blocks of files of the acquisition is synthesized into original document;The receiving unit is further used for receiving the file acquisition response that the first UCD servers are returned, and file acquisition response is sent to the transmitting element, the transmitting element is further used for receiving the file acquisition response that the receiving unit is sent, and file acquisition response is sent to the first terminal, to indicate that the first terminal obtains the original document by file acquisition response.
First with reference to the above-mentioned third aspect is possible, and the server further includes memory cell;The receiving unit is further used for before the file download request that the first terminal is sent is received, and receives the inquiry request that the first terminal is sent, and the inquiry request is sent into the determination acquiring unit;It is described to determine that acquiring unit is further used for receiving the inquiry request that the receiving unit is sent, and the file block message that the user stores in the memory cell is obtained in the log-on message of the first CSP servers according to the user, the blocks of files packet containing the first UCD servers mark and blocks of files belonging to original document mark, and by the original document mark and the first UCD servers mark Knowledge is sent to the transmitting element;The transmitting element is further used for receiving the mark and the mark of the first UCD servers for the original document that the determination acquiring unit is sent, the mark that the original document belonging to the blocks of files is included in blocks of files inquiry request, the blocks of files inquiry request is sent to the first UCD servers according to the mark of the first UCD servers;The receiving unit is further used for receiving the information for the original document that the first UCD servers are returned, and the packet of the original document of the return contains:The title of original document, the divided file number of blocks of the mark and original document of the mark of original document and the first UCD servers, and the information of the original document is sent to the transmitting element and the memory cell;The memory cell is used for the information for receiving the original document that the receiving unit is sent, and stores the information of the original document;The transmitting element is further used for receiving the information for the original document that the receiving unit is sent, and the mark of the title of the original document in the information of the original document and the original document is sent to the first terminal, or the information of the original document is sent to the first terminal.
First possible second with reference to the above-mentioned third aspect is possible, and the file block message further includes blocks of files flag;Before the transmitting element sends blocks of files inquiry request according to the mark of the first UCD servers to the first UCD servers, the determination acquiring unit further determines that the blocks of files flag splits mark for original document.
Any of the above-described possible 3rd with reference to the third aspect of the embodiment of the present invention is possible,
Further included in the file download request:The divided file number of blocks of original document, and the first UCD servers mark;The determination acquiring unit determines that original document corresponding with the mark of the original document is specially by piecemeal, and the mark of the first unified cloud disk UCD servers of acquisition:The first CSP servers determine that the divided file number of blocks of the original document is more than 1, and obtain the marks of the first UCD servers from file download request;Or
The determination acquiring unit determines that original document corresponding with the mark of the original document is specially by piecemeal, and the mark of the first unified cloud disk UCD servers of acquisition:The first CSP servers obtain the information of the corresponding original document of mark with the original document of storage according to the mark of the original document, and the packet of the original document contains:Original document mark and the first UCD servers mark with And the divided file number of blocks of original document;The first CSP servers determine that the divided file number of blocks of the original document is more than 1, and obtain from the information of the original document mark of the first UCD servers.
Any of the above-described possible 4th with reference to 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 servers are sent;The blocks of files that block request bag is uploaded containing the original document and the file block message of the first UCD servers generation, and the user is in the log-on message of the first CSP servers;
The memory cell is further used for receiving the upload block request that the receiving unit is sent, and stores the blocks of files and stores the file block message and the user in the log-on message mapping of the first CSP servers.
Any of the above-described possible 5th with reference to the third aspect of the embodiment of the present invention may, the receiving unit is further used for the file deletion requests of first terminal transmission, the mark for the file that need to be deleted is carried in the file deletion requests, the mark of the file that need to be deleted is sent to the determination acquiring unit;
It is described to determine the mark that acquiring unit is further used for receiving the file for the need deletion that the receiving unit is sent, it is determined that the file that need to be deleted corresponding with the mark of the file that need to be deleted is by piecemeal, and the mark of the 2nd UCD servers of the blocks of files for uploading the file that need to be deleted is obtained, and the mark of this 2nd UCD server is sent to transmitting element;
The transmitting element is further used for receiving the mark for the 2nd UCD servers that the determination acquiring unit is sent, the file deletion requests are sent to the 2nd UCD servers according to the mark of the 2nd UCD servers, the file deletion requests are used to indicate that the 2nd UCD servers send blocks of files removal request to the 4th CSP servers of the blocks of files for storing the file that need to be deleted, and after the blocks of files deletion response that the 4th CSP servers are returned is received, delete the information of the file of the need deletion of the 2nd UCD server storages and return to file to the first CSP servers and delete response;
The receiving unit is further used for receiving the file deletion response that the 2nd UCD servers are returned, and file deletion response is sent into the transmitting element;
The transmitting element is further used for receiving the file deletion response that the receiving unit is sent, And send file deletion response to the first terminal.
The the 5th the possible 6th with reference to the third aspect of the embodiment of the present invention is possible, is further included in the file deletion requests:The divided file number of blocks of file that need to be deleted, and the 2nd UCD servers mark;The determination acquiring unit determines that original document corresponding with the mark of the file that need to be deleted is specially by piecemeal, and the mark of the 2nd UCD servers of acquisition:Determine to need the divided file number of blocks of file deleted to be more than 1 described in the file deletion requests, and obtain from the file deletion requests mark of the 2nd UCD servers;Or
The determination acquiring unit determines that file corresponding with the mark of the file that need to be deleted is specially by piecemeal, and the mark of the 2nd UCD servers of acquisition:The first CSP servers obtain the information of the file that need to be deleted 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, and the packet of the file that need to be deleted contains:Mark, the mark of the 2nd UCD servers and the divided file number of blocks of the file that need to be deleted of the file that need to be deleted;It is determined that the divided file number of blocks of the file that need to be deleted of storage is more than 1, and obtain from the information of the file that need to be deleted the mark of the 2nd UCD servers.
Fourth aspect present invention, which provides a kind of unified cloud disk UCD servers, to be included:
Receiving unit, for receiving the file acquisition request that the first cloud service provider CSP servers are sent, the file acquisition request carries the mark of original document;And the mark of the original document is sent to determination acquiring unit;
It is described to determine that acquiring unit is used for the mark for receiving the original document that the receiving unit is sent, the information of the corresponding original document of mark with the original document of storage is obtained according to the mark of the original document, the mark of 2nd CSP servers of the information of the original document including storage file block, the order of the file block identification and the blocks of files of the 2nd CSP server storages in original document;And according to the mark of the 2nd CSP servers, the 2nd CSP servers indicated from the mark of the 2nd CSP servers obtain blocks of files corresponding with the file block identification of the 2nd CSP server storages;And by the transmitting element be used for receive it is described determination acquiring unit send blocks of files and the blocks of files Order in original document, according to order of the blocks of files in original document, merges into the original document, and the original document is supplied into first terminal by the blocks of files that each is obtained from the 2nd CSP servers.
With reference to fourth aspect present invention first may, the original document is supplied to the first terminal to be specially by the transmitting element:
File acquisition response is returned to the first CSP servers, the file acquisition response carries the original document;The file acquisition is responded is sent to the first terminal for indicating that the first CSP servers receive the file acquisition response;Or
File acquisition response is returned to the first CSP servers, the file acquisition response carries storage address of the original document in the UCD servers;The file acquisition is responded is sent to the first terminal for indicating that the first CSP servers respond the file acquisition, and indicates that the first terminal obtains the original document according to the storage address.
May with reference to fourth aspect present invention or first possible second, the receiving unit is further used for receiving the file upload request that the second terminal is sent after second terminal logs in the UCD servers by user in the log-on message of the UCD servers, and the file upload request carries the size for the original document that user need to upload;
It is described to determine the information that acquiring unit is further used for obtaining the 3rd CSP servers that the user's registration is crossed, the 2nd CSP servers of the blocks of files for uploading the original document are determined according to the size information of the information of the 3rd CSP servers and original document;
The receiving unit is further used for receiving the original document that the second terminal is sent, and the original document is sent into the transmitting element;
The transmitting element is further used for receiving the original document that the receiving unit is sent, and the blocks of files of the original document is uploaded into the 2nd CSP servers that the determination acquiring unit is determined.
The second the possible 3rd of fourth aspect present invention is possible, and the packet of the 3rd CSP servers contains free memory and threeth CSP server of the user in the 3rd CSP servers The size of the maximum file of support;
The determination acquiring unit determines that the 2nd CSP servers of the blocks of files for uploading original document are specially according to the information of the 3rd CSP servers and the size information of original document:Determine the free memory be more than the original document size, and the 3rd CSP servers support maximum file size be more than the original document size the 3rd CSP servers as upload blocks of files unit determine the 2nd CSP servers be specially:The 2nd CSP servers are uploaded to using original document as blocks of files;Or, the determination acquiring unit determines that the 2nd CSP servers of the blocks of files for uploading the original document are specially according to the information of the 3rd CSP servers and the size information of original document:Determine that free memory is more than at least two the 3rd CSP servers of the size for the maximum file that the 3rd CSP servers are supported as the 2nd CSP servers for uploading blocks of files, the original document is divided at least two blocks of files by the size for the maximum file supported according at least two the 2nd CSP servers of determination, and the size of the blocks of files is specially less than the 2nd CSP servers that the maximum text that the 2nd CSP servers are supported is determined:At least two blocks of files is uploaded at least two the 2nd CSP servers respectively.
The the 3rd the possible 4th with reference to fourth aspect present invention is possible, and the server further comprises memory cell;
The memory cell is used for the information for storing the original document, and the information of the original document includes:The divided file number of blocks of the mark of original document, original document, and each blocks of files file block identification, and the 2nd CSP servers of storage each blocks of files mark, and order of each blocks of files in original document.
The the 4th the possible 5th with reference to fourth aspect present invention is possible, and the order of the mark, file block identification and blocks of files of the UCD servers in original document is sent to the 2nd CSP servers by the mark that the transmitting element is further used for the 2nd CSP servers of the storage blocks of files stored according to the memory cell. Possible with reference to fourth aspect present invention any of the above-described possible 6th, the server is further comprising deletion unit;
The receiving unit is further used for receiving the mark for carrying the file that need to be deleted in the file deletion requests that the first CSP servers are sent, the file deletion requests;
It is described to determine the information that acquiring unit is further used for obtaining the file that deleted corresponding with the mark of the file that need to be deleted that the memory cell is stored according to the mark of the file that need to be deleted, the packet of the file that need to be deleted identifying containing the 4th C SP servers for storing the blocks of files that need to delete file, the mark of the blocks of files of each 4th CSP server storages, and the information of the file that need to be deleted is sent to the transmitting element;
The transmitting element is further used for receiving the information of the file for the need deletion that the determination acquiring unit is sent, blocks of files removal request is sent to the 4th CSP servers according to the mark according to the 4th CSP servers, the mark of the file will of the 4th CSP server storages is carried in the blocks of files removal request, the file deletion requests are used for the information for indicating that the 4th CSP servers delete corresponding with the file block identification of the 4th CSP server storages blocks of files and blocks of files;
The receiving unit is further used for receiving the blocks of files deletion response that the 4th CSP servers are sent;
It is described to delete the information that unit is used to delete the file that deleted of the memory cell storage;The transmitting element is further used for deleting response to the first CSP servers return file, and the file is deleted response and sent for indicating that the file is deleted response by the first CSP servers to first terminal.
The aspect of the embodiment of the present invention the 5th provides a kind of CSP servers, including:Transferring and receiving apparatus, memory and processor;
The transceiver be used to receiving first terminal by user after the log-on message of the CSP servers logs in the CSP servers, and the CSP servers are to during the first terminal offer business, 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 is used to store various programs and application, and is performed respectively under the calling of the processor Program and the function of application;
The processor is used for various programs and the application for calling memory storage, and determines that original document corresponding with the mark of the original document, by piecemeal, obtains the mark of the first unified cloud disk UCD servers of the blocks of files for uploading the original document;File acquisition request is sent to the first UCD servers according to the mark of the first UCD servers, the file acquisition request carries the mark of the original document;The file acquisition is asked for indicating that the first UCD servers obtain the information of the original document of storage according to the mark of the original document, and according to the mark of the 2nd CSP servers of storage file block in the information of the original document, the 2nd CSP servers indicated from the mark of the 2nd CSP servers obtain 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 servers are returned, and file acquisition response is sent into the first terminal, to indicate that the first terminal obtains the original document by file acquisition response.
The aspect of the embodiment of the present invention the 5th provides a kind of UCD servers, including:Transferring and receiving apparatus, memory and processor;
The transceiver is used for device and receives the file acquisition request that the first cloud service provider CSP servers are sent, and the file acquisition request carries the mark of original document;
The memory is used for various programs and application, and each program of execution and the function of application under the calling of the processor;
The processor is used for various programs and the application for calling memory storage, the information of the corresponding original document of mark with the original document of storage is obtained according to the mark of the original document, the information of the original document includes the mark of the 2nd CSP servers of storage file block, order of the file block identification and the blocks of files of 2nd CSP server storages in original document, according to the mark of the 2nd CSP servers, the 2nd CSP servers indicated from the mark of the 2nd CSP servers obtain blocks of files corresponding with the file block identification of the 2nd CSP server storages;According to the order from the blocks of files of the 2nd CSP servers acquisition in original document, the blocks of files that each is obtained from the 2nd CSP servers is merged into the original document; The transceiver is further used for the original document being supplied to first terminal.
By such scheme it can be seen that, terminal is during the business provided using CSP servers, without separately setting up the connection with UCD servers, and can just be obtained after the file by piecemeal uploaded by user by UCD servers by the connection with CSP servers, so as to avoid terminal from separately setting up the process being connected with UCD servers, user's operation is simplified, so as to improve Consumer's Experience.
The technical scheme of brief description of the drawings in order to illustrate the embodiments of the present invention more clearly, the accompanying drawing used required in being described below to embodiment is briefly described, apparently, drawings in the following description are only some embodiments of the present invention, for those of ordinary skill in the art, without having to pay creative labor, other accompanying drawings can also be obtained according to these accompanying drawings.
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 clients;The original document A and original document B that Fig. 3 is terminal provided in an embodiment of the present invention to be uploaded by UCD clients by UCD servers storage schematic diagram Fig. 4 of CSP servers be user provided in an embodiment of the present invention by terminal logs in CSP server Bs when, obtain the method flow diagram that user is stored in each C SP server file information;Fig. 5 be CSP servers be supplied to the user of user be stored in CSP servers file schematic diagram;
Fig. 6 is the method flow diagram provided in an embodiment of the present invention for obtaining the file uploaded by UCD servers;
Fig. 7 is the method flow diagram that terminal provided in an embodiment of the present invention deletes file by CSP servers;Fig. 8 is the method flow diagram provided in an embodiment of the present invention for providing file
Fig. 9 is the structural representation of CSP servers provided in an embodiment of the present invention;
Figure 10 is another structural representation of CSP servers provided in an embodiment of the present invention; Figure 11 is the structural representation of UCD servers provided in an embodiment of the present invention;
Figure 12 is another structural representation of UCD servers provided in an embodiment of the present invention
Embodiment is below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only a part of embodiment of the invention, rather than whole embodiments.Based on the embodiment in the present invention, the every other embodiment that those of ordinary skill in the art are obtained under the premise of creative work is not made belongs to the scope of protection of the invention.
Fig. 1 is the method flow diagram of file download provided in an embodiment of the present invention, is comprised the following steps:Step 101, the first CSP servers carry the mark of original document to the file download request that first terminal is sent during first terminal offer business, is received in the file download request;
Step 102, the first CSP servers determine original document corresponding with the mark of the original document by piecemeal, and obtain the mark of unified cloud disk UCD servers;
Step 103, the first CSP servers take business device to send file acquisition request according to the mark of the UCD servers to the UCDe, and the file acquisition request carries the mark of the original document;The file acquisition is asked for indicating that the UCD servers obtain the information of the original document of storage according to the mark of the original document, and according to the mark of the corresponding 2nd C SP servers of blocks of files in the information of the original document, the 2nd CSP servers indicated from the mark of the 2nd CSP servers obtain blocks of files, and the blocks of files of the acquisition is synthesized into original document;
Step 103, the first CSP servers receive the file acquisition response that the UCD servers are returned, and file acquisition response is sent to the first terminal, to indicate that the first terminal obtains the original document by file acquisition response.
As can be seen from the above embodiments, by such scheme it can be seen that, terminal is during the business provided using CSP servers, without separately setting up the connection with UCD servers, and can just be obtained after the file by piecemeal uploaded by user by UCD servers by the connection with CSP servers, so as to avoid terminal from separately setting up the process being connected with UCD servers, user's operation is simplified, so as to improve Consumer's Experience.
Further, the first terminal is specially by the file acquisition response acquisition original document:The 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 storage address of the original document in the first UCD servers;The first terminal obtains the original document according to the storage address from the first UCD servers.
What deserves to be explained is, in the embodiment of the present invention for convenience of description, the UCD servers for receiving file deletion requests are referred to as the 2nd UCD servers, the UCD servers for receiving download request and file upload request are referred to as the first UCD servers.The CSP servers registered customers as are referred to as the 3rd CSP servers, determine to be referred to as the 2nd CSP servers for storing the CSP servers of original document by device is taken in the CSP excessively of user's registration.Original document will be stored(The file that need to be downloaded)CSP servers be referred to as the 2nd CSP servers, the CSP servers of file that need to delete will be stored and be referred to as the 4th CSP servers.The mark for the file that uploads or need to download is referred to as to the mark of original document, the mark for the file that the mark for the file that need to be deleted is referred to as deleting, the corresponding information of mark of original document is referred to as the information of original document, the corresponding information of mark for the file that need to be deleted is referred to as the information for the file that need to be deleted.The terminal being connected with CSP servers is referred to as first terminal, the terminal being connected with UCD servers is referred to as second terminal.
Fig. 2 is the method flow diagram of recovery session content transmission provided in an embodiment of the present invention, is comprised the following steps:
Step 200, second terminal send file upload request by UCD clients to the first UCD servers, and the file upload request carries the size information for the original document that user need to upload.
Before this step is performed, terminal logs in the first UCD servers by user in the log-on message of the first UCD servers, what deserves to be explained is, the terminal in flow of the present invention is connected with UCD servers, the terminal of UCD clients is as mounted with, is referred to as second terminal.
Step 201, the first UCD servers obtain the information for the CSP servers that the user's registration is crossed.Specifically, the first UCD server storages log-on message of the user at the 3rd CSP servers.As described above, the CSP servers registered customers as in the embodiment of the present invention are referred to as the 3rd CSP services Device.Log-on message of the user at the 3rd CSP servers includes the mark of the 3rd CSP servers(Such as the link address of the 3rd CSP servers), user the 3rd CSP server registrations account name and password.Log-on message of the first UCD servers according to the user at the 3rd CSP servers, the information of the 3rd CSP servers is obtained at the 3rd CSP servers, the information of the 3rd CSP servers includes connection speed of the user in the free memory of the CSP servers, the maximum file size of the 3rd CSP servers support, and/or the 3rd CSP servers.
In the present embodiment, assuming that user registers at CSP server As and CSP server Bs respectively, therefore, first UCD server storage user is in CSP server As and CSP server Bs, CSP servers C log-on message, and respectively to the information of acquisition CSP server As and CSP server Bs at CSP server As and CSP server Bs.CSP server As, CSP server C and CSP server Bs are referred to as the 3rd CSP servers.
Step 202, the first UCD servers determine the 2nd CSP servers of the blocks of files for uploading the original document according to the information of the 3rd CSP servers and the size information of original document.
The upload file request that step 203, the first UCD servers are sent to second terminal is responded.
Step 204, second terminal upload original document to UCD servers.
Step 205, the first UCD servers segmentation original document, i.e., to original document piecemeal.
After the completion of file upload, first UCD servers carry out piecemeal, and generate the information of original document according to the information of the 2nd CSP servers of determination to original document, such as Metadata of original document, and the information of original document is stored at the first UCD servers.
As an example, the packet of the 3rd CSP servers contains the size for the maximum file that the user supports in the free memory of the 3rd CSP servers and the 3rd CSP servers;It is described to determine that the 2nd CSP servers of the blocks of files for uploading original document are specially according to the information of the 3rd CSP servers and the size information of original document:Determine that the free memory is more than the size of the original document, and the size of the maximum file of the 3rd CSP servers support is used as the 2nd CSP servers for uploading blocks of files more than the 3rd CSP servers of the size of the original document;It is described blocks of files is uploaded to the 2nd CSP servers to be specially:Using original document as in blocks of files It is transmitted to the 2nd CSP servers;Or, described determine that the 2nd CSP servers of the blocks of files for uploading the original document are specially according to the information of the 3rd CSP servers and the size information of original document:Determine that free memory is more than at least two the 3rd CSP servers of the size for the maximum file that the 3rd CSP servers are supported as the 2nd CSP servers for uploading blocks of files, the original document is divided at least two blocks of files by the size for the maximum file supported according at least two the 2nd CSP servers of determination, and at least two blocks of files is uploaded at least two the 2nd CSP servers respectively, the size of the blocks of files is less than the size for the maximum file that the 2nd CSP servers are supported.
Such as, in the present embodiment, the first UCD servers determine three CSP servers that user's registration is crossed(That is the 3rd CSP servers) in CSP server As and CSP servers as storage file block the 2nd CSP servers, original document is then divided into few two blocks of files, the size of each file is less than the size of the maximum file of the support of CSP server As or applies example less than the maximum file that CSP server Bs are supported not to be limited herein.
Further, the information of UCD server storages original document can include:The information of the original document is stored, the information of the original document includes:The divided file number of blocks of the mark of original document, original document, and each blocks of files file block identification, and the 2nd CSP servers of storage each blocks of files mark, and order of each blocks of files in original document.
Optionally, the information of the original document of the first UCD server storages can also include the time that the size and original document of original document are changed.What deserves to be explained is, in the embodiment of the present invention, original document refers to the file that the second end is sent to the first UCD servers.
Specifically, the information of original document is as shown in table 1:
The information of the original document of table 1 Parameter Chinese name explanation
MetadatalD original documents can be the metadata of server-assignment
Mark
Filename original document original document titles
Title
The time of ModifiedTime original document file Last modifications
The phase is said in modification
The file size of Size original document original documents
Size
ChunkNum file block number blocks of files quantity, when file is not stored by piecemeal, this parameter
In value be 1, when file is by piecemeal, then this parameter value be specific blocks of files number
Chunklnfo blocks of files believes blocks of files relevant information(Chunklnfo may have multiple, the quantity dependent on breath ChunkNum) each file block message Chunklnfo for including includes in the information of original document:File block identification(Can unique mark blocks of files mark), storage file block CSP information(Such as the address of CSP title, or CSP)With order of the blocks of files in original document.Further, file block message can also not limited herein comprising file block size and other file block messages, the title embodiment of the present invention of such as blocks of files.In addition, to file block identification, if the first UCD servers do not carry out piecemeal to original document, file block identification can also be the mark of original document.Specifically, file block message can be as shown in table 2:Table 2, file block message
ChunkName blocks of files blocks of files titles
Title
The mark of 2nd CSP servers of blocks of files described in CSPInfo CSP service memories, nominal, CSP URI etc. of such as CSP device
Know
Order of the Seq blocks of files blocks of files in original document, for recovering original document original
In file
Order
The size of Size blocks of files blocks of files
UCD servers, according to the information of the original document, are the information Chunkdata that each blocks of files generates blocks of files.Specifically, the packet of blocks of files contains:File block identification, blocks of files source(Blocks of files is such as sent to the information of CSP the first UCD servers), the mark of the original document belonging to blocks of files.Further, the information of blocks of files can also include blocks of files flag, to indicate whether blocks of files or original document after segmentation.Wherein, the information that the packet of blocks of files contains is as shown in table 3:
The information of blocks of files
As an example, when UCD servers pass to the 2nd CSP servers for original document, i.e. UCD not to original document piecemeal when, blocks of files is designated the mark of original document, and blocks of files flag value is 0.When UCD servers pass to the 2nd CSP servers for blocks of files after segmentation when:Blocks of files flag value is 1
Step 206 or 206, the first UCD servers are by uploading block request server
UploadChimkRequest is to the 2nd CSP server up transfer file blocks, wherein the log-on message for uploading blocks of files of the block request bag containing the original document, the file block message of the first UCD servers generation and the user in the first CSP servers.
Specifically, the first UCD servers according to the CSP server identifications in the information of original document to the 2nd CSP server up transfer file blocks.Further, upload in block request and also carry account name and password of the user in the 2nd CSP server registrations.
Step 207 or 207,, the 2nd CSP servers have been received after blocks of files and the corresponding Chunkdata data of blocks of files, account name and password according to uploading in block request are verified to the first UCD servers, and the blocks of files is stored after being verified, and store the file block message and the user in the log-on message mapping of the first CSP servers, and return to the good device UploadChimkResponse message of being engaged in of the server upload block response moon to UCD servers.
When UCD servers have sent different blocks of files and Chunkdata data to the 2nd different CSP servers, and receive after all corresponding return confirmation messages, confirm that the different blocks of files of original document have been stored at the 2nd different CSP servers.
It is used as another optional mode, first UCD servers are before step 206 or 206 is performed, first pass through user and set up the connection with the 2nd CSP servers in the account information of CSP server registrations, then sent by the connection to CSP servers and upload block request above transmitting file block, so as to blocks of files described in the 2nd CSP server storages, and store the file block message and the user in the log-on message mapping of the first CSP servers, and return to server upload block response server UploadChunkResponse message to UCD servers.
It is used as an example, it is assumed that terminal needs the storage file in CSP servers:/ home/test/A, Abbreviation original document A.Sent by UCD clients to the first UCD servers and upload file request message, carried in the upload file request message and user is in UCD server original documents ,/home/test/A, size information.First UCD servers are after the upload file request message that terminal is sent by UCD clients is received, the information for the 3rd CSP servers crossed according to user in the account name inquiry user's registration of UCD server registrations.In this example, the user is registered in CSP server As, CSP server Bs and CSP servers C respectively, then the includes CSP server As, CSP server Bs and CSP servers C in CSP servers.The information for the 3rd CSP servers that UCD server lookup user's registrations are crossed is specially:Respectively to CSP server As, CSP server Bs and CSP servers C send user's available resources inquiry request, and user's available resources inquiry request carries the account name and password of the user that is stored in the first UCD servers in the CSP server registrations.First UCD servers receive CSP server As, and the response that CSP server Bs and CSP servers C are each returned is included in the response:User's maximum file size that available memory space, CSP servers are supported in the CSP servers is further, and connection speed can also be included in the response.First UCD servers are according to the description in step 202, such as according to the information and the size information of original document of the CSP servers of acquisition, it is determined that the CSP of upper transmitting file is to determine the 2nd CSP servers.Assuming that in the present embodiment, the first UCD servers are determined original document ,/home/test/A, CSP server As, CSP server Bs and CSP servers C are arrived in piecemeal storage.Then the 2nd CSP servers include CSP server As, CSP server Bs and CSP servers C.Then, UCD servers are sent to UCD Client uploads file request response, it is allowed to which UCD Client upload original document/home/test/A.After original document/home/test/A that user terminal is uploaded by UCD clients is received, perform step 205, after original document/home/test/A piecemeals, and the blocks of files A1-A3 after piecemeal is sent respectively to by CSP server As, CSP server Bs and CSP servers C by step 206-207.
In another embodiment, an ancient weapon made of bamboo user also needs to upload original document/home/test/ B, abbreviation original document 8.And the first UCD servers are according to original document B size, and each CSP servers got information, selection CSP server As do not carry out block as the 2nd CSP server storages original document to original document B. The original document A and original document B that user is uploaded by UCD clients by the first UCD servers are as shown in Figure 3 in the storage schematic diagram of CSP servers:As shown in figure 3, original document A is divided into after blocks of files A1-A3 via the first UCD servers, CSP server As, CSP server Bs and CSP servers C are respectively stored into.And original document B has only stored CSP server As via the first UCD servers.
First UCD servers receive and piecemeal are carried out after original document A, and the original document A of storage information is as shown in table 4:
The original document A of table 4 information
Metadatal
df345gf56
D
Filename /home/test/ A
ModifiedT
20130312
ime
Size 500M
ChunkNu
3
m
ChunklD 4295294298cdf
ChunkN
A1
Chunklnf ame
o[1 ] CSPInfo http://CSPA.com/clouddisk/
Seq 1
Size 200M
ChunklD 123973192feju
ChunkN
A2
Chunklnf Chunklnf ame
0 o[2] CSPInfo http://CSPB.com/clouddisk/
Seq 2
Size 120M
ChunklD 873910748wev
ChunkN
A3
Chunklnf ame
o[3] CSPInfo http://CSPC.com/clouddisk/
Seq 3
The UCD servers of Size 180M the first receive original document B, and the original document B of storage information is as shown in table 5:The original document B of table 5 information Metadatal
542jd989a3
D
Filename /home/test /B
ModifiedT
20130402
ime
Size 140M
ChunkNu
1
m
ChunklD 542jd989a3
ChunkN
B
ame
Chunklnf Chunklnf
CSPInfo http://CSPA.com/cloudstorag
0 o[1 ]
e/
Seq 1
The UCD servers of Size 140M the first are after to original document A blocked file blocks A1-A3, and the information for the blocks of files A1-A3 blocks of files generated respectively is as shown in the table:
The blocks of files A1 of table 6 information
Chunkl 4295294298cdf
D
ChunkB 1
it
Source http://ucd the months blunt business device com/cloudstorage
Metadat df345gf56
The blocks of files A2 of alD tables 7 information
Chunkl 123973192feju
D
ChunkB 1
it Source http://ucd the months blunt business device com/cloudstorage
Metadat df345gf56
The blocks of files A3 of alD tables 8 information
Chunkl 873910748wev
D
ChunkB 1
it
Source http://ucd the months blunt business device com/cloudstorage
Metadat df345gf56
The UCD servers of alD the first are not carrying out piecemeal, but the letter original document B of the CSP servers uploaded information to original document B
Fig. 4 be CSP servers provided in an embodiment of the present invention after user is by terminal logs in, during providing service for terminal, terminal acquisition user is stored in the flow chart of each CSP server files information and comprised the following steps:
Step 400, first terminal log in CSP server Bs by user in the log-on message of CSP server Bs, and during the offer service of CSP server Bs is provided, file query requests QueryRequest is sent to CSP server Bs, the fileinfo that user stores in CSP server Bs is checked. What deserves to be explained is, the terminal in this flow can be the terminal comprising UCD clients or the terminal not comprising UCD clients.For convenience of description, the terminal for connecting CSP servers is referred to as first terminal by the present embodiment.The CSP servers that first terminal is connected are referred to as the first CSP servers.
Step 401, the file block message of the user in the first CSP server storages in the log-on message of the first CSP servers obtained according to the user;
Specifically, CSP server Bs are not split according to user in Chimkdata information is worked as in log-on message inquiry user's storage of CSP server Bs comprising original document to be identified, when such as ChimkBit is 0, it is complete file to show the corresponding file content of Chimkdata information, then directly performs step 406.Split when Chunkdata packets containing original document and identify, when such as ChimkBit is 1, show the blocks of files that the corresponding file content of Chimkdata information is a certain file, then obtain the mark of the UCD servers in the Source information in Chunkdata information(Blocks of files is such as sent to the address of the mark of the first UCD servers of CSP server Bs, such as the first UCD servers), and the original document described in blocks of files mark, and perform step 402.
Step 402, the mark that the original document belonging to the blocks of files is included in blocks of files inquiry request QueryChunkRequest, the blocks of files inquiry request is sent to the first UCD servers according to the marks of the first UCD servers.
Step 403, the first UCD servers obtain the information of the original document of the first UCD server storages according to the mark of the original document received.The information of original document includes:The title of original document, the divided file number of blocks of the mark and original document of the mark of original document and the first UCD servers.Optionally, the information of the original document of the first UCD server storages can also include the time that the size and original document of original document are changed.First UCD servers simultaneously pass through blocks of files inquiry response
QueryChunkResponse, the service that the information Metadata information of original document is sent into CSP B is cried mouth
Step 404, the mark of the title of the original document and the original document is sent to the first terminal, and stores the information of the original document of the return;Or the information of the original document is sent to institute State first terminal.
Alternatively, CSP server Bs can also generate unified view, and the information of original document is sent into terminal in the form of unified view according to the information of the original document received.
Certainly, the CSP in this flow directly obtains the information of original document without inquiring about the ChunkBit information in ChunkData information, but the Source information in Chunkdata from UCD servers.
It is used as an example, it is assumed that first terminal is signed in to CSP server As transmission inquiry request QueryRequest after CSP server As, and inquiry button is clicked at the interface that can be such as provided in CSP servers.Specifically, it is prior art that user terminal sends inquiry request to CSP server As, the embodiment of the present invention will not be described in detail herein.CSP server As are according to the log-on message of user, the account name of such as user, obtain CSP server As be stored with the user file Al, B file block message.And it is 1 that the information for the file A1 for passing through storage, which obtains the corresponding Chunkdata of A1 ChunkBit, that is, determine that the blocks of files flag splits mark for original document, it is to the blocks of files after original document segmentation to show A1.The mark of original document of the CSP server As according to belonging to the file A1 of storage acquisition of information uploads the mark and blocks of files of the first UCD servers, and the mark http for passing through first server:〃 ucd servers com/cloudstora ge send blocks of files inquiry request to the first UCD servers.Wherein, blocks of files inquiry request carries the mark MetadatalD of original document: dG45gf56.UCD servers are after blocks of files inquiry request is received, according to the mark MetadatalD of the original document of carrying:Dfi45gf56, obtains corresponding with dG45gf56 Metadata information, and by Metadata information(Filename, ModifiedTime, Size, ChunkNum) return to CSP server As.In addition, CSP server As further obtain file B information always according to the account name of user, and it is 0 to obtain the ChunkBit in file B file block message, it is determined that the file B of CSP server storages is original document.CSP servers generate unified view according to the original document A of acquisition information and original document B file block message, and there is provided to terminal.
Specifically, in the present embodiment, Fig. 5 be CSP servers be supplied to the user of user be stored in the CSP servers file schematic diagram.As shown in figure 5, it is divided into two parts, the listed files information directly uploaded by CSP, and by the fileinfo of the first UCD servers upload, the fileinfo uploaded by the first UCD servers includes:The title of original document, the mark of original document and first UCD server identifications(Such as the first UCD server address).Further, if the user leads to multiple first UCD server up transfer file, can individually it be listed for each first UCD servers.No longer it is described in detail herein.Alternatively, CSP is before the information of the original document of file of storage is obtained, the ChunkBit information that can not also be inquired about in the information of blocks of files, but the information for the Source that directly originated according to blocks of files, Metadata information is asked to corresponding UCD servers.
Fig. 6 is the method flow diagram provided in an embodiment of the present invention for obtaining the file uploaded by UCD servers, as shown in fig. 6, comprising the steps of:
Step 600, first terminal log in CSP server Bs by the account information registered in CSP server Bs, and obtain after the information that user is stored in the file of the CSP servers, such as Fig. 5, and file download request is sent to CSP server Bs.The mark of original document and the title of/original document are carried in the file download request.Further, file number of blocks can also be included in file download request(ChunkNum information), and/or the first UCD servers mark, and the information such as original document modification time.
Step 601, CSP server Bs determine whether the corresponding original document of mark of the original document is divided into blocks of files according to the mark of original document.
Specifically, if containing blocks of files quantity information in file download request, and file number of blocks be less than or equal to 1 when, show that the corresponding original document of mark of original document is not divided into blocks of files, user directly can download corresponding with the mark of original document file by terminal from CSP, and the step of no longer perform below.Alternatively, if containing blocks of files quantity information in file download request, and file number of blocks is when being more than 1, and the mark of the first UCD servers, and execution step 602 can further include in file download request.
As another optional mode, CSP server Bs obtain the information of the corresponding original document of mark with the original document of storage according to the mark of the original document, and the packet of the original document contains:The mark of original document and the mark and the divided file number of blocks of original document of the first UCD servers;The first CSP servers determine that the divided file number of blocks of the original document is more than 1, and obtain from the information of the original document mark of the first UCD servers.Then perform step 602. step 602, sent according to the mark of the first UCD servers to the first UCD servers File acquisition is asked, and the file acquisition request carries the mark of the original document.The file acquisition is asked for indicating that the first UCD servers obtain the information of the original document of storage according to the mark of the original document, and according to the mark of the 2nd CSP servers of storage file block in the information of the original document, the 2nd CSP servers indicated from the mark of the 2nd CSP servers obtain blocks of files, and the blocks of files of the acquisition is synthesized into original document.
Further, first UCD servers are according to the mark of the original document received, obtain the information for the original document for being stored in UCD servers, the mark of 2nd CSP servers of the information of the original document including storage file block, the order of the file block identification and the blocks of files of the 2nd CSP server storages in original document.
Step 603 or step 603', according to the mark of the 2nd CSP servers, send in blocks of files download request, blocks of files download request to the 2nd CSP servers of storage file block and carry ChunkID.
Step 604 or step 604', the 2nd CSP servers are received after blocks of files download request, are sent blocks of files corresponding with ChunklD to the first UCD servers, and are sent blocks of files to the first UCD servers and download response.
Alternatively, blocks of files can be sent to first carrying in blocks of files download response
UCD servers.
The blocks of files that each is obtained from the 2nd CSP servers is merged into the original document by step 605, the first UCD servers according to the order from the blocks of files of the 2nd CSP servers acquisition in original document.
Step 606, the first UCD servers are responded by sending file acquisition to CSP server Bs, are carried in the file acquisition response by the file after merging(That is original document)4 all addresses, mouth URL are deposited on the first UCD servers: Uniform Resource Locator, URL.
Step 607, CSP servers send file download response to terminal, and the file after merging is carried in the file download response(That is original document)Storage address on the first UCD servers.
Step 608, terminal obtain file by the URL from the first UCD servers.
What deserves to be explained is:First UCD servers in step 606 directly can also merge step 605 Original document be sent to CSP server Bs, in order to which original document is sent to terminal by CSP server Bs in step 607.From without performing step 608.
It is used as an example, terminal is signed in after CSP server Bs by the account information of registration, according to the schematic diagram of acquisition, user clicks on the corresponding download buttons " Download " of file/home/test/A, and file download request is sent to CSP server As.Original document/home/test/A mark, and/or file number of blocks are carried in being asked in the file download request(ChunkNum information).Determine that the file of this CSP server B storage is blocked file because the ChunkNum in the load request of file laxative remedy is more than 1, CSP server Bs, then the mark of the first UCD servers included in being asked according to file download, to http://ucd servers .com/cloudstorage sends file acquisition request.Original document A mark MetadatalD is carried in the file acquisition request: dG45gf56.UCD servers can obtain the information of the original document corresponding with dG45gf56 of storage according to MetadatalD.UCD servers are according to the information of the original document of storage, determine that original document A is divided into 3 blocks of files, it is respectively stored in CSP server As, CSP server Bs, CSP servers C, then according to the ChimkID of each blocks of files, blocks of files download request is sent to corresponding CSP servers, so that blocks of files Al, A2, A3 are downloaded at these three CSP respectively.Blocks of files Al, A2, A3 are being received, according to each blocks of files correspondence order information, these three blocks of files are merged into original document.Further according to the storage location of complete file after merging, download link is generated, CSP server As are sent to, and terminal is transmitted to by CSP server As.Terminal directly downloads file according to link, you can obtain file/home/test/A.
Similar, when terminal logs in CSP server Bs and click on download blocks of files B when, it is 1 that the inquiry of CSP server Bs, which obtains the corresponding ChunkNum of original document B, illustrates that this file is not divided, and user then directly downloads file/home/test/B at CSP server Bs.Fig. 7 can delete the method flow diagram of file to be provided in an embodiment of the present invention by CSP servers, as shown in fig. 7, comprising the steps of:
Step 700, user by first terminal using user after the account information that CSP server Bs are registered logs in CSP server Bs, obtain the text that user is stored in CSP servers by performing the corresponding flows of Fig. 4 After the schematic diagram of part, such as Fig. 5, the mark that the file that need to be deleted is carried in file deletion requests, the file deletion requests is sent to CSP server Bs.
Specifically, terminal can click on the corresponding deletion button of some file in schematic diagram, to the first CSP servers, such as CSP server Bs send file deletion requests.The mark for the file that the need obtained from unified view are deleted is contained in file deletion requests(MetadatalD), and/or the file name of file that need to delete, and/or the 2nd UCD servers mark.Further, file number of blocks can also be included in file deletion requests(ChunkNum information), and/or the 2nd UCD servers mark, and the information such as modification time for the file that need to be deleted can also include source(Source information), file block number(ChunkNum information).
Step 701, CSP server Bs send file deletion requests, such as server DelFileRequestt according to the mark of the 2nd UCD servers included in file deletion requests to the 2nd UCD servers.The mark for the file that need to be deleted is carried in the file deletion requests.
Specifically, before the step is performed, CSP server Bs determine 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 2nd UCD servers of the blocks of files for uploading the file that need to be deleted.
Further, further included in the file deletion requests:The divided file number of blocks of file that need to be deleted, and the 2nd UCD servers mark;The first CSP servers determine that file corresponding with the mark of the file that need to be deleted is specially by piecemeal, and the mark of the 2nd UCD servers of acquisition:The first CSP servers determine to need the divided file number of blocks of file deleted to be more than 1 described in the file deletion requests, and obtain from the file deletion requests mark of the 2nd UCD servers;Or
The first CSP servers determine that file corresponding with the mark of the file that need to be deleted is specially by piecemeal, and the mark of the 2nd UCD servers of acquisition:The first CSP servers obtain the information of the file that need to be deleted 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, and the packet of the file that need to be deleted contains:Mark, the mark of the 2nd UCD servers and the divided file number of blocks of the file that need to be deleted of the file that need to be deleted;Described first CSP servers determine that the divided file number of blocks of the file that need to be deleted of storage is more than 1, and obtain from the information of the file that need to be deleted the mark of the 2nd UCD servers.
Step 702 or step 702,, the 4th CSP servers from the 2nd UCD servers to storage file block send blocks of files removal request, such as server DelChunkRequest, the mark of the file will of the 4th CSP server storages is carried in the blocks of files removal request, the file deletion requests are used for the information for indicating that the 4th CSP servers delete corresponding with the file block identification of the 4th CSP server storages blocks of files and blocks of files.
Before this step is performed, 2nd UCD servers obtain the information of the file that need to be deleted 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, the identifying of the 4th CSP servers of the packet of the file that need to the be deleted blocks of files that need to delete file containing storage, the mark of the blocks of files of each 4th CSP server storages.
Step 703 or step 703, the 4th CSP servers are received after blocks of files removal request, and sending blocks of files according to literary device deletes response server DelChunkResponse.Further, whether blocks of files is deleted also to delete comprising file in response and is successfully identified.
Step 704, the 2nd UCD servers determine to receive after the corresponding response of blocks of files removal request sent, delete the information of the file of the need deletion of the 2nd UCD server storages, and send file deletion response CSPDelFileResponse to CSP server Bs, flag is carried in response, mark file is successfully deleted;Specifically, before the information for the file that the need for deleting the 2nd UCD server storages are deleted, 2nd UCD servers need to determine that the 4th all CSP servers return blocks of files and delete response, and blocks of files deletes response and contains the mark that file is successfully deleted.
Step 705, CSP server Bs send file to first terminal and delete response DelFileResponse, and flag is carried in response, and mark file is deleted successfully.
As can be seen from the above embodiments, by embodiments of the invention, terminal can be without being directly connected to UCD servers, and in the case of being directly connected to CSP servers, can pass through CSP server admins(By downloading, delete)User uploads to CSP clothes by the terminal equipped with UCD clients by UCD servers The file of business device.So as to facilitate user management file, Consumer's Experience is improved.Fig. 8 is a kind of method for providing file provided in an embodiment of the present invention, is comprised the following steps:Step 801, unified cloud disk UCD servers receive the file acquisition request that the first cloud service provider CSP servers are sent, and the file acquisition request carries the mark of original document;
The information of step 802, the corresponding original document of mark with the original document stored according to the mark acquisition of the original document, the mark of 2nd CSP servers of the information of the original document including storage file block, the order of the file block identification and the blocks of files of the 2nd CSP server storages in original document;
Step 803, the mark according to the 2nd CSP servers, the 2nd CSP servers indicated from the mark of the 2nd CSP servers obtain blocks of files corresponding with the file block identification of the 2nd CSP server storages;
Step 804, the basis order from the blocks of files of the 2nd CSP servers acquisition in original document, each blocks of files obtained from the 2nd CSP servers is merged into the original document, and the original document is supplied to first terminal.
In addition, the UCD servers in the present embodiment, which can also carry out UCD servers in Fig. 1-Fig. 7 flows, (includes the first UCD servers and the 2nd UCD servers)The either step of execution, the embodiment of the present invention will not be described in detail herein.
UCD servers are carried by the present embodiment, terminal can be caused to obtain the file for uploading to CSP servers by UCD servers by CSP servers, so as to improve the experience of user.
Fig. 9 is the structural representation of CSP servers provided in an embodiment of the present invention, including:Receiving unit 901, determine acquiring unit 902, transmitting element 903, memory cell 904.Specifically
Receiving unit 901, for first terminal by user after the log-on message of the CSP servers logs in the CSP servers, and the CSP servers are to during the first terminal offer business, receive the file download request that first terminal is sent, the mark of original document is carried in the file download request, and the mark of the original document is sent to determination acquiring unit;It is described to determine to obtain single Member 902, mark for receiving the original document that the receiving unit is sent, it is determined that original document corresponding with the mark of the original document is by piecemeal, and the mark of the first unified cloud disk UCD servers of the blocks of files for uploading the original document is obtained, and the mark of the first UCD servers is sent to transmitting element;The transmitting element 903, mark for receiving the first UCD servers that the determination receiving unit is sent, and asked according to the mark of the first UCD servers to the first UCD servers transmission file acquisition, the file acquisition request carries the mark of the original document;The file acquisition is asked for indicating that the first UCD servers obtain the information of the original document of storage according to the mark of the original document, and according to the mark of the corresponding 2nd CSP servers of blocks of files in the information of first beginning file, the 2nd CSP servers indicated from the mark of the 2nd CSP servers obtain blocks of files, and the blocks of files of the acquisition is synthesized into original document;
The receiving unit is further used for receiving the file acquisition response that the first UCD servers are returned, and file acquisition response is sent to the transmitting element, the transmitting element is further used for receiving the file acquisition response that the receiving unit is sent, and file acquisition response is sent to the first terminal, to indicate that the first terminal obtains the original document by file acquisition response.
Further, the CSP servers further include memory cell 904;The receiving unit 901 is further used for before the file download request that the first terminal is sent is received, and receives the inquiry request that the first terminal is sent, and the inquiry request is sent into the determination acquiring unit 902;It is described to determine that acquiring unit 902 is further used for receiving the inquiry request that the receiving unit is sent, and the file block message that the user stores in the memory cell is obtained in the log-on message of the first CSP servers according to the user, the mark of original document belonging to mark and blocks of files of the blocks of files packet containing the first UCD servers, and the mark of the mark of the original document and the first UCD servers is sent to the transmitting element 903;The transmitting element 903 is further used for receiving the mark and the mark of the first UCD servers for the original document that the determination acquiring unit is sent, the mark that the original document belonging to the blocks of files is included in blocks of files inquiry request, the blocks of files inquiry request is sent to the first UCD servers according to the mark of the first UCD servers;The receiving unit 901 is further used for receiving the information for the original document that the first UCD servers are returned, the return it is original The packet of file contains:The title of original document, the divided file number of blocks of the mark and original document of the mark of original document and the first UCD servers, and the information of the original document is sent to the transmitting element 903 and the memory cell 904;The memory cell 904 is used for the information for receiving the original document that the receiving unit is sent, and stores the information of the original document;The transmitting element 903 is further used for receiving the information for the original document that the receiving unit is sent, and the mark of the title of the original document in the information of the original document and the original document 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 flag;Before the transmitting element 903 sends blocks of files inquiry request according to the mark of the first UCD servers to the first UCD servers, the determination acquiring unit further determines that the blocks of files flag splits mark for original document.
Further, further included in the file download request:The divided file number of blocks of original document, and the first UCD servers mark;The determination acquiring unit 902 determines that original document corresponding with the mark of the original document is specially by piecemeal, and the mark of the first unified cloud disk UCD servers of acquisition:The first CSP servers determine that the divided file number of blocks of the original document is more than 1, and obtain the marks of the first UCD servers from file download request;Or, the determination acquiring unit 902 determines that original document corresponding with the mark of the original document is specially by piecemeal, and the mark of the first unified cloud disk UCD servers of acquisition:The first CSP servers obtain the information of the corresponding original document of mark with the original document of storage according to the mark of the original document, and the packet of the original document contains:The mark of original document and the mark and the divided file number of blocks of original document of the first UCD servers;The first CSP servers determine that the divided file number of blocks of the original document is more than 1, and obtain from the information of the original document mark of the first UCD servers.
Further, the receiving unit 901 is further used for receiving the upload block request that the first UCD servers are sent;The blocks of files that block request bag is uploaded containing the original document and the file block message of the first UCD servers generation, and the user is in the log-on message of the first CSP servers;The memory cell 904 is further used for receiving the upload block request that the receiving unit is sent, and storage is described Blocks of files and map the file block message and the user in the log-on message of the first CSP servers is stored.
Further, the receiving unit 901 is further used for carrying the mark for the file that need to be deleted in the file deletion requests of first terminal transmission, the file deletion requests, and the mark of the file that need to be deleted is sent into the determination acquiring unit;It is described to determine the mark that acquiring unit 902 is further used for receiving the file for the need deletion that the receiving unit is sent, it is determined that the file that need to be deleted corresponding with the mark of the file that need to be deleted is by piecemeal, and the mark of the 2nd UCD servers of the blocks of files for uploading the file that need to be deleted is obtained, and the mark of this 2nd UCD server is sent to transmitting element;The transmitting element 903 is further used for receiving the mark for the 2nd UCD servers that the determination acquiring unit is sent, the file deletion requests are sent to the 2nd UCD servers according to the mark of the 2nd UCD servers, the file deletion requests are used to indicate that the 2nd UCD servers send blocks of files removal request to the 4th CSP servers of the blocks of files for storing the file that need to be deleted, and after the blocks of files deletion response that the 4th CSP servers are returned is received, delete the information of the file of the need deletion of the 2nd UCD server storages and return to file to the first CSP servers and delete response;The receiving unit 901 is further used for receiving the file deletion response that the 2nd UCD servers are returned, and file deletion response is sent into the transmitting element;The transmitting element 902 is further used for receiving the file deletion response that the receiving unit is sent, and is responded to first terminal transmission file deletion.
Further, further included in the file deletion requests:The divided file number of blocks of file that need to be deleted, and the 2nd UCD servers mark;The determination acquiring unit determines that original document corresponding with the mark of the file that need to be deleted is specially by piecemeal, and the mark of the 2nd UCD servers of acquisition:Determine to need the divided file number of blocks of file deleted to be more than 1 described in the file deletion requests, and obtain from the file deletion requests mark of the 2nd UCD servers;Or, the determination acquiring unit 902 determines that file corresponding with the mark of the file that need to be deleted is specially by piecemeal, and the mark of the 2nd UCD servers of acquisition:The first CSP servers obtain the information of the file that need to be deleted 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, and the packet of the file that need to be deleted contains:The mark of the file that need to be deleted, the mark of the 2nd UCD servers with And the divided file number of blocks of the file that need to be deleted;It is determined that the divided file number of blocks of the file that need to be deleted of storage is more than 1, and obtain from the information of the file that need to be deleted the mark of the 2nd UCD servers.
In said apparatus embodiment, memory cell can be memory(Memerry, or storage) or random access memory (RAM, random access memory) or read-only storage (ROM ,-ead Only Memory), the embodiment of the present invention is not limited herein.
Figure 10 is the structural representation of terminal provided in an embodiment of the present invention, including:Transceiver 1001, memory 1002, processor 1003.Specifically
The transceiver 1001 be used to receiving first terminal by user after the log-on message of the CSP servers logs in the CSP servers, and the CSP servers are to during the first terminal offer business, 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 1002 is used to store various programs and application, and each program of execution and the function of application under the calling of the processor;The processor 1003 is used for the mark for calling the first unified cloud disk UCD servers of the blocks of files of the various uploads original document of memory storage;File acquisition request is sent to the first UCD servers according to the mark of the first UCD servers, the file acquisition request carries the mark of the original document;The file acquisition is asked for indicating that the first UCD servers obtain the information of the original document of storage according to the mark of the original document, and according to the mark of the 2nd CSP servers of storage file block in the information of the original document, the 2nd CSP servers indicated from the mark of the 2nd CSP servers obtain blocks of files, and the blocks of files of the acquisition is synthesized into original document;The transceiver 1001 is further used for the file acquisition response that the first UCD servers are returned, and file acquisition response is sent into the first terminal, to indicate that the first terminal obtains the original document by file acquisition response.
In addition, processor 1003 can be also used for performing each step for the functional module execution that the CSP servers or CSP servers that Fig. 1 to Fig. 7 is described in embodiment of the method are included, the embodiment of the present invention will not be described in detail herein. Figure 11 is a kind of uniformly cloud disk UCD servers, including receiving unit 1101 provided in an embodiment of the present invention, determines acquiring unit 1102, transmitting element 1103, memory cell 1104 and deletion unit 1105, specifically,
Receiving unit 1101, for receiving the file acquisition request that the first cloud service provider CSP servers are sent, the file acquisition request carries the mark of original document;And the mark of the original document is sent to determination acquiring unit 1102;
It is described to determine that acquiring unit 1102 is used for the mark for receiving the original document that the receiving unit is sent, the information of the corresponding original document of mark with the original document of storage is obtained according to the mark of the original document, the mark of 2nd CSP servers of the information of the original document including storage file block, the order of the file block identification and the blocks of files of the 2nd CSP server storages in original document;And according to the mark of the 2nd CSP servers, the 2nd CSP servers indicated from the mark of the 2nd CSP servers obtain blocks of files corresponding with the file block identification of the 2nd CSP server storages;And
1103;
The transmitting element 1103 is used to receive order of the blocks of files and the blocks of files for determining acquiring unit transmission in original document, according to order of the blocks of files in original document, each blocks of files obtained from the 2nd CSP servers is merged into the original document, and the original document is supplied to first terminal.
Further, the original document is supplied to the first terminal to be specially by the transmitting element 1103:File acquisition response is returned to the first CSP servers, the file acquisition response carries the original document;The file acquisition is responded is sent to the first terminal for indicating that the first CSP servers receive the file acquisition response;Or, file acquisition response is returned to the first CSP servers, the file acquisition response carries storage address of the original document in the UCD servers;The file acquisition is responded is sent to the first terminal for indicating that the first CSP servers respond the file acquisition, and indicates that the first terminal obtains the original document according to the storage address.
Further, the receiving unit 1101 in second terminal by user in the UCD servers Log-on message is logged in be further used for receiving the file upload request that the second terminal is sent after the UCD servers, and the file upload request carries the size for the original document that user need to upload;
It is described to determine the information that acquiring unit 1102 is further used for obtaining the 3rd CSP servers that the user's registration is crossed, the 2nd CSP servers of the blocks of files for uploading the original document are determined according to the size information of the information of the 3rd CSP servers and original document;
The receiving unit 1101 is further used for receiving the original document that the second terminal is sent, and the original document is sent into the transmitting element 1103;
The transmitting element 1102 is further used for receiving the original document that receiving unit 1101 is sent, and the blocks of files of the original document is uploaded into the 2nd CSP servers that the determination acquiring unit 1102 is determined.
Further, the size for the maximum file that the packet of the 3rd CSP servers is supported containing the user in the free memory of the 3rd CSP servers and the 3rd CSP servers;
The determination acquiring unit 1102 determines that the 2nd CSP servers of the blocks of files for uploading original document are specially according to the information of the 3rd CSP servers and the size information of original document:Determine the free memory be more than the original document size, and the 3rd CSP servers support maximum file size be more than the original document size the 3rd CSP servers as upload blocks of files determine acquiring unit determine the 2nd CSP servers be specially:The 2nd CSP servers are uploaded to using original document as blocks of files;Or, the determination acquiring unit 1102 determines that the 2nd CSP servers of the blocks of files for uploading the original document are specially according to the information of the 3rd CSP servers and the size information of original document:Determine that free memory is more than at least two the 3rd CSP servers of the size for the maximum file that the 3rd CSP servers are supported as the 2nd CSP servers for uploading blocks of files, the original document is divided at least two blocks of files by the size for the maximum file supported according at least two the 2nd CSP servers of determination, and the size of the blocks of files is stated less than the 2nd CSP server branch determines that the 2nd CSP servers that acquiring unit is determined are specially:By at least two blocks of files At least two the 2nd CSP servers are uploaded to respectively.
Further, the server further comprises memory cell 1104;
The memory cell 1104 is used for the information for storing the original document, and the information of the original document includes:The divided file number of blocks of the mark of original document, original document, and each blocks of files file block identification, and the 2nd CSP servers of storage each blocks of files mark, and order of each blocks of files in original document.
Further, the transmitting element 1103 is further used for that the order of the mark, file block identification and blocks of files of the UCD servers in original document is sent into the 2nd CSP servers according to the mark of the 2nd CSP servers for storing the blocks of files of the memory cell 1104 storage.
Further, the server is further comprising unit 1105 is deleted, and the receiving unit 1101 is further used for receiving the mark for carrying the file that need to be deleted in the file deletion requests that the first CSP servers are sent, the file deletion requests;It is described to determine the information that acquiring unit 1102 is further used for obtaining the file that deleted corresponding with the mark of the file that need to be deleted that the memory cell is stored according to the mark of the file that need to be deleted, mark of the packet of the file that need to be deleted containing the 4th CSP servers for storing the blocks of files that need to delete file, the mark of the blocks of files of each 4th CSP server storages, and step is used for the information of file for receiving the need deletion that the determination acquiring unit is sent, blocks of files removal request is sent to the 4th CSP servers according to the mark according to the 4th CSP servers, the mark of the file will of the 4th CSP server storages is carried in the blocks of files removal request, the file deletion requests are used for the information for indicating that the 4th CSP servers delete corresponding with the file block identification of the 4th CSP server storages blocks of files and blocks of files;The receiving unit 1101 is further used for receiving the blocks of files deletion response that the 4th CSP servers are sent;It is described to delete the information that unit 1105 is used to delete the file that deleted of the memory cell storage;The transmitting element 1103 is further used for deleting response to the first CSP servers return file, and the file is deleted response and sent for indicating that the file is deleted response by the first CSP servers to first terminal.
Figure 12 is the structural representation of UCD servers provided in an embodiment of the present invention, including:Transceiver 1201st, memory 1202, processor 1203.
Specifically, the transceiver 1201, which is used for device, receives the file acquisition request that the first cloud service provider CSP servers are sent, the file acquisition request carries the mark of original document;The memory 1202 is used for various programs and application, and each program of execution and the function of application under the calling of the processor;The processor 1203 is used for various programs and the application for calling memory storage, the information of the corresponding original document of mark with the original document of storage is obtained according to the mark of the original document, the information of the original document includes the mark of the 2nd CSP servers of storage file block, order of the file block identification and the blocks of files of 2nd CSP server storages in original document, according to the mark of the 2nd CSP servers, the 2nd CSP servers indicated from the mark of the 2nd CSP servers obtain blocks of files corresponding with the file block identification of the 2nd CSP server storages;According to the order from the blocks of files of the 2nd CSP servers acquisition in original document, the blocks of files that each is obtained from the 2nd CSP servers is merged into the original document;
The transceiver 1201 is further used for the original document being supplied to first terminal.
In addition, processor 1203 can be also used for performing each step that the UCD servers that Fig. 1 to Fig. 7 is described in embodiment of the method are performed, the embodiment of the present invention will not be described in detail herein.
In the various embodiments described above, terminal can be various mobile terminals, such as plant whole smart mobile phone, tablet personal computer, mobile reading equipment etc..In the above-described embodiments, in the corresponding embodiments of especially Fig. 9 and Figure 11, each device that CSP servers and UCD servers include simply is divided according to function logic, but is not limited to above-mentioned division, as long as corresponding function can be realized;In addition, the specific name of each device is also only to facilitate mutually distinguish, the protection domain being not intended to limit the invention.Fig. 1-Fig. 7 CSP servers and each functional module of UCD servers or the function of each device can be run by the processor of terminal and completed; it is described above; preferably embodiment only of the invention; but protection scope of the present invention is not limited thereto; any one skilled in the art the invention discloses technical scope in; the change or replacement that can be readily occurred in, should all be included within the scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (29)

  1. Claims
    1. a kind of document down loading method, it is characterized in that, first terminal by user after the log-on message of the first cloud service provider CSP servers logs in the first CSP servers, and the first CSP servers, to during the first terminal offer business, this method includes:
    The first CSP servers receive the file download request that the first terminal is sent, and the mark of original document is carried in the file download request;Block, obtains the mark of the first unified cloud disk UCD servers of the blocks of files for uploading the original document;The first CSP servers send file acquisition request according to the mark of the first UCD servers to the first UCD servers, and the file acquisition request carries the mark of the original document;The file acquisition is asked for indicating that the first UCD servers obtain the information of the original document of storage according to the mark of the original document, and according to the mark of the 2nd CSP servers of storage file block in the information of the original document, the 2nd CSP servers indicated from the mark of the 2nd CSP servers obtain blocks of files, and the blocks of files of the acquisition is synthesized into original document;
    The first CSP servers receive the file acquisition response that the first UCD servers are returned, and file acquisition response is sent into the first terminal, to indicate that the first terminal obtains the original document by file acquisition response.
    2nd, the method as described in claim 1, it is characterised in that the first terminal obtains the original document by file acquisition response and is specially:
    The 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 storage address of the original document in the first UCD servers;The first terminal obtains the original document according to the storage address from the first UCD servers.
    3rd, such as method of claim 1 or 2, it is characterised in that before the file download request that the reception first terminal is sent, this method further comprises: Receive the inquiry request that the first terminal is sent;
    File block message of the user in the first CSP server storages is obtained in the log-on message of the first CSP servers according to the user, the blocks of files packet is containing the mark for uploading the original document belonging to the mark and blocks of files of the first UCD servers;
    The mark that the original document belonging to the blocks of files is included in blocks of files inquiry request, the blocks of files inquiry request is sent to the first UCD servers according to the mark of the first UCD servers;The information for the original document that the first UCD servers are returned is received, the packet of the original document of the return contains:The title of original document, the divided file number of blocks of the mark and original document of the mark of original document and the first UCD servers;
    The mark of the title of the original document and the original document is sent to the first terminal, and stores the information of the original document of the return;Or the information of the original document is sent to the first terminal.
    4th, method as claimed in claim 3, it is characterised in that:The file block message further includes blocks of files flag;
    The mark according to the first UCD servers is sent to the first UCD servers before blocks of files inquiry request, and the first CSP servers further determine that the blocks of files flag splits mark for original document.
    5. the method as described in claim 4 or 3, it is characterised in that:Further included in the file download request:The divided file number of blocks of original document, and the first UCD servers mark;The first CSP servers determine that original document corresponding with the mark of the original document is specially by piecemeal, and the mark of the first unified cloud disk UCD servers of acquisition:The first CSP servers determine that the divided file number of blocks of the original document is more than 1, and obtain the marks of the first UCD servers from file download request;Or piecemeal, and obtain the first unified cloud disk UCD servers mark be specially:The first CSP servers obtain the original text corresponding with the mark of the original document of storage according to the mark of the original document The information of part, the packet of the original document contains:The mark of original document and the mark and the divided file number of blocks of original document of the first UCD servers;The first CSP servers determine that the divided file number of blocks of the original document is more than 1, and obtain from the information of the original document mark of the first UCD servers.
    6th, the method as described in claim 1-5 is any, it is characterised in that this method further comprises:Receive the upload block request that the first UCD servers are sent;The log-on message that blocks of files of the block request bag containing the original document, the file block message of the first UCD servers generation and the user are uploaded in the first CSP servers;
    The blocks of files is stored, and the file block message and the user are stored in the log-on message mapping of the first CSP servers.
    7th, the method as described in claim 1-6 is any, it is characterised in that this method further comprises:Receive the mark that the file that need to be deleted is carried in the file deletion requests that first terminal is sent, the file deletion requests;
    The first CSP servers determine 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 2nd UCD servers of the blocks of files for uploading the file that need to be deleted;The file deletion requests are sent to the 2nd UCD servers according to the mark of the 2nd UCD servers, the file deletion requests are used to indicate that the 2nd UCD servers send blocks of files removal request to the 4th CSP servers of the blocks of files for storing the file that need to be deleted, and after the blocks of files for receiving the 4th CSP servers return deletes response, the fileinfo of the file of the need deletion of the 2nd UCD server storages of deletion is simultaneously deleted to the first CSP servers return file to be responded;
    The first CSP servers receive the file deletion response that the 2nd UCD servers are returned, and delete and respond to the first terminal transmission file.
    8th, method as claimed in claim 7, it is characterised in that further included in the file deletion requests:The divided file number of blocks of file that need to be deleted, and the 2nd UCD servers mark;The first CSP servers determine that file corresponding with the mark of the file that need to be deleted is specially by piecemeal, and the mark of the 2nd UCD servers of acquisition:The first CSP servers, which determine that the file is deleted, asks Need the divided file number of blocks of file deleted to be more than 1 described in asking, and obtain from the file deletion requests mark of the 2nd UCD servers;Or
    The first CSP servers determine that file corresponding with the mark of the file that need to be deleted is specially by piecemeal, and the mark of the 2nd UCD servers of acquisition:The first CSP servers obtain the information of the file that need to be deleted 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, and the packet of the file that need to be deleted contains:Mark, the mark of the 2nd UCD servers and the divided file number of blocks of the file that need to be deleted of the file that need to be deleted;The first CSP servers determine that the divided file number of blocks of the file that need to be deleted of storage is more than 1, and obtain from the information of the file that need to be deleted the mark of the 2nd UCD servers.
    9th, a kind of file providing method, it is characterised in that including:
    Unified cloud disk UCD servers receive the file acquisition request that the first cloud service provider CSP servers are sent, and the file acquisition request carries the mark of original document;
    The information of the corresponding original document of mark with the original document of storage is obtained according to the mark of the original document, the mark of 2nd CSP servers of the information of the original document including storage file block, the order of the file block identification and the blocks of files of the 2nd CSP server storages in original document;According to the mark of the 2nd CSP servers, the 2nd CSP servers indicated from the mark of the 2nd CSP servers obtain blocks of files corresponding with the file block identification of the 2nd CSP server storages;According to the order from the blocks of files of the 2nd CSP servers acquisition in original document, the blocks of files that each is obtained from the 2nd CSP servers is merged into the original document, and the original document is supplied to first terminal.
    10th, method as claimed in claim 9, it is characterised in that:It is described to be supplied to the first terminal to include the original document:
    File acquisition response is returned to the first CSP servers, the file acquisition response carries the original document;The file acquisition is responded is sent to the first terminal for indicating that the first CSP servers receive the file acquisition response;Or
    File acquisition response is returned to the first CSP servers, the file acquisition response carries described Storage address of the original document in the UCD servers;The file acquisition is responded is sent to the first terminal for indicating that the first CSP servers respond the file acquisition, and indicates that the first terminal obtains the original document according to the storage address.
    11st, the method as described in claim 9 or 10, it is characterised in that the UCD servers second terminal by user the UCD servers log-on message log in after, this method further comprises:The file upload request that the second terminal is sent is received, the file upload request carries the size for the original document that user need to upload;
    Obtain the information for the 3rd CSP servers that the user's registration is crossed;
    The 2nd CSP servers of the blocks of files for uploading the original document are determined according to the size information of the information of the 3rd CSP servers and original document, and after the original document that the second terminal is sent is received, the blocks of files of the original document is uploaded to the 2nd CSP servers.
    12nd, method as claimed in claim 11, it is characterised in that the size for the maximum file that the packet of the 3rd CSP servers is supported containing the user in the free memory of the 3rd CSP servers and the 3rd CSP servers;
    It is described to determine that the 2nd CSP servers of the blocks of files for uploading original document are specially according to the information of the 3rd CSP servers and the size information of original document:Determine that the free memory is more than the size of the original document, and the size of the maximum file of the 3rd CSP servers support is used as the 2nd CSP servers for uploading blocks of files more than the 3rd CSP servers of the size of the original document;It is described blocks of files is uploaded to the 2nd CSP servers to be specially:The 2nd CSP servers are uploaded to using original document as blocks of files;Or
    It is described to determine that the 2nd CSP servers of the blocks of files for uploading the original document are specially according to the information of the 3rd CSP servers and the size information of original document:Determine that free memory is more than at least two the 3rd CSP servers of the size for the maximum file that the 3rd CSP servers are supported as the 2nd CSP servers for uploading blocks of files, the original document is divided at least two blocks of files by the size for the maximum file supported according at least two the 2nd CSP servers of determination, and at least two blocks of files is uploaded at least two the 2nd CSP servers, the size of the blocks of files respectively The size for the maximum file supported less than the 2nd CSP servers.
    13rd, method as claimed in claim 11, it is characterised in that it is described be uploaded to the 2nd CSP servers after the original document that the second terminal is sent is received and by the blocks of files of the original document before, this method further comprises:
    The information of the original document is stored, the information of the original document includes:The divided file number of blocks of the mark of original document, original document, and each blocks of files file block identification, and the 2nd CSP servers of storage each blocks of files mark, and order of each blocks of files in original document.
    14th, method as claimed in claim 13, it is characterised in that this method further comprises:The order of the mark, file block identification and blocks of files of the UCD servers in original document is sent to by the 2nd CSP servers according to the mark of the 2nd CSP servers of the storage blocks of files.
    15th, the method as described in claim 9-14 is any, it is characterised in that this method further comprises:Receive the mark that the file that need to be deleted is carried in the file deletion requests of the first CSP servers transmission, the file deletion requests;
    Obtain the information of the file that need to be deleted 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, the identifying of the 4th CSP servers of the packet of the file that need to the be deleted blocks of files that need to delete file containing storage, the mark of the blocks of files of each 4th CSP server storages;
    According to the mark according to the 4th CSP servers blocks of files removal request is sent to the 4th CSP servers, the mark of the file will of the 4th CSP server storages is carried in the blocks of files removal request, the file deletion requests are used for the information for indicating that the 4th CSP servers delete corresponding with the file block identification of the 4th CSP server storages blocks of files and blocks of files;
    Receive the blocks of files deletion response that the 4th CSP servers are sent;
    The information of the file that need to be deleted of the UCD server storages is deleted, and file is returned to the first CSP servers and deletes response, the file, which deletes response, to be used to indicate that the first CSP servers send file deletion response to first terminal. 16th, a kind of cloud service provider CSP servers, it is characterised in that including:
    Receiving unit, for first terminal by user after the log-on message of the CSP servers logs in the CSP servers, and the CSP servers are to during the first terminal offer business, receive the file download request that first terminal is sent, the mark of original document is carried in the file download request, and the mark of the original document is sent to determination acquiring unit;
    The determination acquiring unit, the mark for receiving the original document that the receiving unit is sent, the mark of the first unified cloud disk UCD servers of the blocks of files of file, and the mark of the first UCD servers is sent to transmitting element;
    The transmitting element, mark for receiving the first UCD servers that the determination receiving unit is sent, and asked according to the mark of the first UCD servers to the first UCD servers transmission file acquisition, the file acquisition request carries the mark of the original document;The file acquisition is asked for indicating that the first UCD servers obtain the information of the original document of storage according to the mark of the original document, and according to the mark of the corresponding 2nd CSP servers of blocks of files in the information of first beginning file, the 2nd CSP servers indicated from the mark of the 2nd CSP servers obtain blocks of files, and the blocks of files of the acquisition is synthesized into original document;
    The receiving unit is further used for receiving the file acquisition response that the first UCD servers are returned, and file acquisition response is sent to the transmitting element, the transmitting element is further used for receiving the file acquisition response that the receiving unit is sent, and file acquisition response is sent to the first terminal, to indicate that the first terminal obtains the original document by file acquisition response.
    17th, server as claimed in claim 16, it is characterised in that the server further includes memory cell;
    The receiving unit is further used for before the file download request that the first terminal is sent is received, and receives the inquiry request that the first terminal is sent, and the inquiry request is sent into the determination acquiring unit;
    It is described to determine that acquiring unit is further used for receiving the inquiry request that the receiving unit is sent, and root According to the user file block message that the user stores in the memory cell is obtained in the log-on message of the first CSP servers, the mark of original document belonging to mark and blocks of files of the blocks of files packet containing the first UCD servers, and the mark of the mark of the original document and the first UCD servers is sent to the transmitting element;
    The transmitting element is further used for receiving the mark and the mark of the first UCD servers for the original document that the determination acquiring unit is sent, the mark that the original document belonging to the blocks of files is included in blocks of files inquiry request, the blocks of files inquiry request is sent to the first UCD servers according to the mark of the first UCD servers;
    The receiving unit is further used for receiving the information for the original document that the first UCD servers are returned, and the packet of the original document of the return contains:The title of original document, the divided file number of blocks of the mark and original document of the mark of original document and the first UCD servers, and the information of the original document is sent to the transmitting element and the memory cell;
    The memory cell is used for the information for receiving the original document that the receiving unit is sent, and stores the information of the original document;
    The transmitting element is further used for receiving the information for the original document that the receiving unit is sent, and the mark of the title of the original document in the information of the original document and the original document is sent to the first terminal, or the information of the original document is sent to the first terminal.
    18th, server as claimed in claim 17, it is characterised in that the file block message further includes blocks of files flag;
    Before the transmitting element sends blocks of files inquiry request according to the mark of the first UCD servers to the first UCD servers, the determination acquiring unit further determines that the blocks of files flag splits mark for original document.
    19th, the server as described in claim 16-18 is any, it is characterised in that:
    Further included in the file download request:The divided file number of blocks of original document, and the first UCD servers mark;The determination acquiring unit determines that original document corresponding with the mark of the original document is specially by piecemeal, and the mark of the first unified cloud disk UCD servers of acquisition: The first CSP servers determine that the divided file number of blocks of the original document is more than 1, and obtain the marks of the first UCD servers from file download request;Or
    The determination acquiring unit determines that original document corresponding with the mark of the original document is specially by piecemeal, and the mark of the first unified cloud disk UCD servers of acquisition:The first CSP servers obtain the information of the corresponding original document of mark with the original document of storage according to the mark of the original document, and the packet of the original document contains:The mark of original document and the mark and the divided file number of blocks of original document of the first UCD servers;The first CSP servers determine that the divided file number of blocks of the original document is more than 1, and obtain from the information of the original document mark of the first UCD servers.
    20th, the server as described in claim 17-19 is any, it is characterised in that
    The receiving unit is further used for receiving the upload block request that the first UCD servers are sent;The blocks of files that block request bag is uploaded containing the original document and the file block message of the first UCD servers generation, and the user is in the log-on message of the first CSP servers;
    The memory cell is further used for receiving the upload block request that the receiving unit is sent, and stores the blocks of files and stores the file block message and the user in the log-on message mapping of the first CSP servers.
    21st, the server as described in claim 16-20 is any, it is characterised in that
    The receiving unit is further used for carrying the mark for the file that need to be deleted in the file deletion requests of first terminal transmission, the file deletion requests, and the mark of the file that need to be deleted is sent into the determination acquiring unit;
    It is described to determine the mark that acquiring unit is further used for receiving the file for the need deletion that the receiving unit is sent, it is determined that the file that need to be deleted corresponding with the mark of the file that need to be deleted is by piecemeal, and the mark of the 2nd UCD servers of the blocks of files for uploading the file that need to be deleted is obtained, and the mark of this 2nd UCD server is sent to transmitting element;
    The transmitting element is further used for receiving the mark for the 2nd UCD servers that the determination acquiring unit is sent, and the text is sent to the 2nd UCD servers according to the mark of the 2nd UCD servers Part removal request, the file deletion requests are used to indicate that the 2nd UCD servers send blocks of files removal request to the 4th CSP servers of the blocks of files for storing the file that need to be deleted, and after the blocks of files for receiving the 4th CSP servers return deletes response, the information of the file of the need deletion of the 2nd UCD server storages of deletion is simultaneously deleted to the first CSP servers return file to be responded;
    The receiving unit is further used for receiving the file deletion response that the 2nd UCD servers are returned, and file deletion response is sent into the transmitting element;
    The transmitting element is further used for receiving the file deletion response that the receiving unit is sent, and is responded to first terminal transmission file deletion.
    22nd, server as claimed in claim 21, it is characterised in that further included in the file deletion requests:The divided file number of blocks of file that need to be deleted, and the 2nd UCD servers mark;The determination acquiring unit determines that original document corresponding with the mark of the file that need to be deleted is specially by piecemeal, and the mark of the 2nd UCD servers of acquisition:Determine to need the divided file number of blocks of file deleted to be more than 1 described in the file deletion requests, and obtain from the file deletion requests mark of the 2nd UCD servers;Or
    The determination acquiring unit determines that file corresponding with the mark of the file that need to be deleted is specially by piecemeal, and the mark of the 2nd UCD servers of acquisition:The first CSP servers obtain the information of the file that need to be deleted 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, and the packet of the file that need to be deleted contains:Mark, the mark of the 2nd UCD servers and the divided file number of blocks of the file that need to be deleted of the file that need to be deleted;It is determined that the divided file number of blocks of the file that need to be deleted of storage is more than 1, and obtain from the information of the file that need to be deleted the mark of the 2nd UCD servers.
    23rd, a kind of unified cloud disk UCD servers, it is characterised in that including:
    Receiving unit, for receiving the file acquisition request that the first cloud service provider CSP servers are sent, the file acquisition request carries the mark of original document;And the mark of the original document is sent to determination acquiring unit;
    It is described to determine that acquiring unit is used for the mark for receiving the original document that the receiving unit is sent, The information of the corresponding original document of mark with the original document of storage is obtained according to the mark of the original document, the mark of 2nd CSP servers of the information of the original document including storage file block, the order of the file block identification and the blocks of files of the 2nd CSP server storages in original document;And according to the mark of the 2nd CSP servers, the 2nd CSP servers indicated from the mark of the 2nd CSP servers obtain blocks of files corresponding with the file block identification of the 2nd CSP server storages;And by the transmitting element be used to receive the order in original document of blocks of files and the blocks of files that the determination acquiring unit is sent, according to order of the blocks of files in original document, each blocks of files obtained from the 2nd CSP servers is merged into the original document, and the original document is supplied to first terminal.
    24th, server as claimed in claim 23, it is characterised in that the original document is supplied to the first terminal to be specially by the transmitting element:
    File acquisition response is returned to the first CSP servers, the file acquisition response carries the original document;The file acquisition is responded is sent to the first terminal for indicating that the first CSP servers receive the file acquisition response;Or
    File acquisition response is returned to the first CSP servers, the file acquisition response carries storage address of the original document in the UCD servers;The file acquisition is responded is sent to the first terminal for indicating that the first CSP servers respond the file acquisition, and indicates that the first terminal obtains the original document according to the storage address.
    25th, the server as described in claim 22 or 23, it is characterised in that
    The receiving unit is further used for receiving the file upload request that the second terminal is sent after second terminal logs in the UCD servers by user in the log-on message of the UCD servers, and the file upload request carries the size for the original document that user need to upload;
    It is described to determine the information that acquiring unit is further used for obtaining the 3rd CSP servers that the user's registration is crossed, the 2nd CSP servers of the blocks of files for uploading the original document are determined according to the size information of the information of the 3rd CSP servers and original document; The receiving unit is further used for receiving the original document that the second terminal is sent, and the original document is sent into the transmitting element;
    The transmitting element is further used for receiving the original document that the receiving unit is sent, and the blocks of files of the original document is uploaded into the 2nd CSP servers that the determination acquiring unit is determined.
    26th, server as claimed in claim 25, it is characterised in that the size for the maximum file that the packet of the 3rd CSP servers is supported containing the user in the free memory of the 3rd CSP servers and the 3rd CSP servers;
    The determination acquiring unit determines that the 2nd CSP servers of the blocks of files for uploading original document are specially according to the information of the 3rd CSP servers and the size information of original document:Determine the free memory be more than the original document size, and the 3rd CSP servers support maximum file size be more than the original document size the 3rd CSP servers as upload blocks of files unit determine the 2nd CSP servers be specially:The 2nd CSP servers are uploaded to using original document as blocks of files;Or
    The determination acquiring unit determines that the 2nd CSP servers of the blocks of files for uploading the original document are specially according to the information of the 3rd CSP servers and the size information of original document:Determine that free memory is more than at least two the 3rd CSP servers of the size for the maximum file that the 3rd CSP servers are supported as the 2nd CSP servers for uploading blocks of files, the original document is divided at least two blocks of files by the size for the maximum file supported according at least two the 2nd CSP servers of determination, and the size of the blocks of files is less than the size for the maximum file that the 2nd CSP servers are supported;It is described
    CSP servers are specially:At least two blocks of files is uploaded at least two the 2nd CSP servers respectively.
    27th, server as claimed in claim 26, it is characterised in that the server further comprises memory cell; The memory cell is used for the information for storing the original document, and the information of the original document includes:The divided file number of blocks of the mark of original document, original document, and each blocks of files file block identification, and the 2nd CSP servers of storage each blocks of files mark, and order of each blocks of files in original document.
    28th, server as claimed in claim 27, it is characterised in that the order of the mark, file block identification and blocks of files of the UCD servers in original document is sent to the 2nd CSP servers by the mark of two CSP servers.
    29th, the server as described in claim 23-28 is any, it is characterised in that the server is further comprising deletion unit;
    The receiving unit is further used for receiving the mark for carrying the file that need to be deleted in the file deletion requests that the first CSP servers are sent, the file deletion requests;
    It is described to determine the information that acquiring unit is further used for obtaining the file that deleted corresponding with the mark of the file that need to be deleted that the memory cell is stored according to the mark of the file that need to be deleted, the packet of the file that need to be deleted identifying containing the 4th CSP servers for storing the blocks of files that need to delete file, the mark of the blocks of files of each 4th CSP server storages, and the information of the file that need to be deleted is sent to the transmitting element;
    The transmitting element is further used for receiving the information of the file for the need deletion that the determination acquiring unit is sent, blocks of files removal request is sent to the 4th CSP servers according to the mark according to the 4th CSP servers, the mark of the file will of the 4th CSP server storages is carried in the blocks of files removal request, the file deletion requests are used for the information for indicating that the 4th CSP servers delete corresponding with the file block identification of the 4th CSP server storages blocks of files and blocks of files;
    The receiving unit is further used for receiving the blocks of files deletion response that the 4th CSP servers are sent;
    It is described to delete the information that unit is used to delete the file that deleted of the memory cell storage;The transmitting element is further used for returning to file deletion response, the text to the first CSP servers Part, which deletes response, to be used to indicate that the file is deleted response and sent to first terminal by the first CSP servers.
    30th, a kind of service provider CSP servers, it is characterised in that including:Transferring and receiving apparatus, memory and processor;
    The transceiver be used to receiving first terminal by user after the log-on message of the CSP servers logs in the CSP servers, and the CSP servers are to during the first terminal offer business, 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 is used to store various programs and application, and each program of execution and the function of application under the calling of the processor;
    The processor is used for various programs and the application for calling memory storage, and determines that original document corresponding with the mark of the original document, by piecemeal, obtains the mark of the first unified cloud disk UCD servers of the blocks of files for uploading the original document;File acquisition request is sent to the first UCD servers according to the mark of the first UCD servers, the file acquisition request carries the mark of the original document;The file acquisition is asked for indicating that the first UCD servers obtain the information of the original document of storage according to the mark of the original document, and according to the mark of the 2nd CSP servers of storage file block in the information of the original document, the 2nd CSP servers indicated from the mark of the 2nd CSP servers obtain 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 servers are returned, and file acquisition response is sent into the first terminal, to indicate that the first terminal obtains the original document by file acquisition response.
    31st, a kind of unified cloud disk UCD servers, it is characterised in that including:Transferring and receiving apparatus, memory and processor;
    The transceiver is used for device and receives the file acquisition request that the first cloud service provider CSP servers are sent, and the file acquisition request carries the mark of original document;
    The memory is used for various programs and application, and each program of execution and the function of application under the calling of the processor; The processor is used for various programs and the application for calling memory storage, the information of the corresponding original document of mark with the original document of storage is obtained according to the mark of the original document, the information of the original document includes the mark of the 2nd CSP servers of storage file block, order of the file block identification and the blocks of files of 2nd CSP server storages in original document, according to the mark of the 2nd CSP servers, the 2nd CSP servers indicated from the mark of the 2nd CSP servers obtain blocks of files corresponding with the file block identification of the 2nd CSP server storages;According to the order from the blocks of files of the 2nd CSP servers acquisition in original document, the blocks of files that each is obtained from the 2nd CSP servers is merged into the original document;
    The transceiver is further used for the original document being supplied to first terminal.
CN201380000818.7A 2013-06-29 2013-06-29 A kind of method and apparatus of file download Active CN104969532B (en)

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 true CN104969532A (en) 2015-10-07
CN104969532B 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)

* Cited by examiner, † Cited by third party
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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110022642A1 (en) * 2009-07-24 2011-01-27 Demilo David Policy driven cloud storage management and cloud storage policy router
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 (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101997924A (en) * 2010-11-22 2011-03-30 杨文军 Cloud storage file transfer protocol (CFTP)

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110022642A1 (en) * 2009-07-24 2011-01-27 Demilo David Policy driven cloud storage management and cloud storage policy router
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
CN104969532B (en) 2018-12-07
WO2014205839A1 (en) 2014-12-31

Similar Documents

Publication Publication Date Title
CN101958914B (en) File sharing method, shared server and mobile communication terminal
CN102420843B (en) A kind of compression and decompression method, Apparatus and system based on cloud compression link
CN103812882A (en) Method and system for transferring files
CN102271165B (en) Device and method for sharing and managing resources searched on Internet
JP6294321B2 (en) Publish information on the website
JPH1125015A (en) Method for transmitting hypertext and hypertext transmission server device
CN102307219B (en) File access system, file uploading method and file downloading method
CN103581272A (en) File transfer method and device
CN106357539B (en) A kind of data capture method and equipment
CN102546836A (en) Method, terminal, server and system for uploading files
CN103997452A (en) Information sharing method and apparatus among multiple platforms
CN109729187B (en) Proxy communication method, system, device and storage medium
WO2015043455A1 (en) Data transmission method, device, and system
CN103475682A (en) File transfer method and file transfer equipment
CN101997759A (en) Service implementation method and service system
CN102710535B (en) A kind of data capture method and equipment
EP2827258A1 (en) Embedded network proxy system, terminal device and proxy method
CN104618388B (en) Fast registration login method and corresponding resetting server, information server
CN107707616A (en) A kind of data transmission method and system
CN102790806B (en) Method and device for downloading courseware based on http (hyper text transport protocol)
CN103841159B (en) Offline file transmission system and method
CN103368897B (en) The method of delivery applications program, Apparatus and system
CN1953455A (en) A method, module and server to control access to network resource
CN101488974A (en) P2P resource providing method, system and P2P directory server
CN102055786A (en) File download method and server, download client and system adopting same

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.