[summary of the invention]
Technical problem to be solved by this invention provides a kind of cloud computing device and processes the method for file, it can receive original information and command information from client, and after according to this command information original being processed synchronously to other terminal, to improve the service ability of cloud computing system.
For solving the problems of the technologies described above, the present invention is achieved by the following technical solutions:
A kind of cloud computing device is processed the method for file, and it may further comprise the steps:
S1: client is finished registration/login, sets up being connected between client and the cloud computing device;
S2: the node allocation units of the subscriber information management unit of cloud computing device are distributed to the node name of framework of this client on virtual IP address v6 network foundation, make this client carry out communication at this virtual IP address v6 network;
S3: the cloud computing device receives from the fileinfo of client and corresponding message processing directives, by the task allocation unit of the instruction administrative unit of cloud computing device these message processing directives is resolved, and allocating task is carried out alignment processing to fileinfo.
Further, described step S3 carries out following operation particularly, task allocation unit checks the available resources in the cloud computing system, if available file process resource is arranged in the cloud computing system, then assigns the task to these available resourcess and divides the work to process; If current do not have an available file process resource, then task is transferred to the message processing module of instruction administrative unit.
Further, the method also comprises step S4: the message processing module of instruction administrative unit carries out alignment processing according to receiving of task to fileinfo after receiving the task that task allocation unit distributes.
Further, among the described step S4, described message processing module can provide fileinfo is carried out that the 2D image information is converted to 3D rendering information and synchronously to the function of other client.
Further, among the described step S4, described message processing module can provide the batch process of different-format file and be uploaded to the function of cloud storage system.
Further, the available resources among the described step S3 can be provided by different clients, also can be provided by the heterogeneous networks service provider that forms cloud computing system.
Further, the method also comprises S5: the fileinfo after the processing is transferred to lock unit synchronously to other client and/or back up in the cloud storage system.
The present invention also can be achieved through the following technical solutions:
A kind of cloud computing device, it comprises subscriber information management unit, relevant database and instruction administrative unit; Described subscriber information management unit comprises the node allocation units, and this subscriber information management unit is used for log-on message and the log-on message of administrative client, and the log-on message of client is stored in the relevant database; After client was finished registration/login, the node allocation units were distributed to the node name of framework of this client on virtual IP address v6 network foundation, made this client carry out communication at this virtual IP address v6 network; The cloud computing device receives from the fileinfo of client and corresponding message processing directives, by the task allocation unit of instruction administrative unit these message processing directives is resolved, and allocating task is carried out alignment processing to fileinfo.
Further, described instruction administrative unit comprises message processing module, can carry out alignment processing to fileinfo according to after receiving the task that task allocation unit distributes, with the fileinfo after processing synchronously to other client.
Further, described message processing module comprises the image information converting unit, if message processing module receives the 2D image and needs the instruction of this 2D image synchronization to the 3D equipment, then by the image information converting unit this 2D image is processed, the image after the processing can be play in 3D equipment.
Further, described message processing module comprises the files in batch processing unit, if message processing module receives the file of batch different-format and needs the instruction of consolidation form, then by the files in batch processing unit file format is unified, then be uploaded in the cloud storage system.
Further, this cloud computing device also comprises distributed data base, and it comprises resource distribution module, is used for finding new available resources.
The present invention has following advantage:
The present invention can monitor the editor that the user carries out to the file in the cloud service file management system backup file, and can distinguish backup file and the information of editing, thereby when uploading transaction file, need not that whole backup file and the information of editing together are uploaded to this system manages, and just the information of editing is uploaded, long pass speed that like this can the Effective Raise file, the resource of having saved network service resource and cloud storage system.
In addition, the content of edit memory that cloud service file management system of the present invention is done the user at different time according to event horizon for different from file, thereby the user is when having specific demand, can view editor and the corresponding transaction file of doing at different time in client, this transaction file is the complete file after backup file and the content of edit combination.
[embodiment]
Reach technological means and the effect that predetermined purpose is taked for further setting forth the present invention, below in conjunction with drawings and Examples, to the specific embodiment of the present invention, be described in detail as follows.
As shown in Figure 1, cloud computing system of the present invention comprises client 3, cloud computing device 1 and cloud storage system 2, and described client 3 is for having installed PC, smart mobile phone or other digital devices of cloud computing application module of the present invention.This client 3 can to remote equipment transparent transmission file, also can be used as directly accessed Web server.Described cloud computing device 1 mainly is for carrying out the authentication to client 3, the IP address that client 3 is distributed in management, the user who shields illegal connection, according to fileinfo and the command information of client transmission file being done corresponding rear the backup at cloud storage system and/or synchronously to other terminal of processing.Described cloud storage system is used for preserving the fileinfo that client is uploaded, and the resource of storage file is provided.
Described client 3 is in the installation of finishing the cloud computing application module, and after successfully logging in, the cloud computing device can be distributed to the address of a virtual framework IPv6 of this client and be known as the host name of node name.The user just can conduct interviews to described client by this node name, and the memory of this client has also become simultaneously can from the field that network conducts interviews, become a virtual server.This cloud computing system is so that be present between the equipment of different, the heterogeneous local area network (LAN)s that make up based on IPv4 or the network segment and can carry out transparent interconnecting, the i.e. virtual IPv6 network of framework on existing network, make between each client and can communicate by this virtual IPv6 network, client can change the Web server of lightweight into, the user can be contained in this client in the pocket of oneself, can be in any place or any time freely, instant browsing send and receive the content that is not subjected to the size restriction.At present the Web service framework take IPv4 as the basis central type server, service is gathered under the huge cloud, along with constantly the converging of flow, data center is more and more huger like this, and limited IP address limitation the communication of equipment room.But the present invention utilizes IPv6 to have this advantage of IP address resource of infinite expanding, framework the virtual IPv6 network that makes up based on IPv4.
Cloud computing application module in the described client 3 can provide the cloud service application interface, the prompting of user by this interface can send command information to the cloud computing device, such as add shared device, check the remote equipment stored file, from the remote equipment download file, to the backup of remote equipment Transmit message, file, share, synchronously, the 2D image transitions is the instructions such as 3D rendering, the processing of different-format files in batch.
Below will specifically introduce the operation principle of described cloud computing device 1.
This cloud computing device comprises api interface 14 (Application Programming Interface, application programming interface), subscriber information management unit 10, relevant database 11, instruction administrative unit 13 and distributed data base 12.
Described api interface 14 is predefined function, so that the ability of this calculator of client-access to be provided, to transmit command adapted thereto to the cloud computing device, and need not to access source code, transmits the passage of information to this cloud service management system for client.
Described subscriber information management unit 10 is used for log-on message and the log-on message of administrative client, and the log-on message of client is stored in the relevant database 11, connection to client 3 authenticates, whether log-on message corresponding in namely confirming log-on message that the user inputs and being stored in relevant database 11 is consistent, if consistent then allow the further access action of client, if inconsistent then refuse its next step action;
Particularly, as shown in Figure 2, described subscriber information management unit 10 comprises shared device administrative unit 101, node allocation units 102 and available resources administrative unit 103; Shared device administrative unit 101 is used for determining having the relation between each equipment of Share Permissions, sharing or do synchronously the path and instruct for file; Described node allocation units 102 are used for distributing a virtual node name to client, namely when client is finished registration and is successfully logined, it can distribute the node name of framework on virtual IP address v6 network foundation to this client, has between each client 3 of Share Permissions to communicate by this virtual IPv6 network; Described available resources administrative unit 103 becomes the memory of client 3 can make this client become a virtual server from the field that network conducts interviews, and the secure access of management document and transmission.
Described relevant database 10 is for the shared relationship information of setting up between the log-on message of storing client 3 and the client.
Described distributed data base 12 is used for storage backup in the memory address of cloud storage system File, management and access cloud storage system 2.
Described instruction administrative unit 13 is resolved these message processing directives according to the fileinfo and the fileinfo processing instruction that receive from client, and allocating task is carried out alignment processing to fileinfo; Particularly, as shown in Figure 3, this instruction administrative unit comprises lock unit 130, backup units 131, task allocation unit 132, index information generation module 134 and message processing module 135.After client 3 sent to cloud computing device 1 with fileinfo and corresponding command information, 132 pairs of these instructions of described task allocation unit were resolved, and this task is carried out corresponding lock unit 130, backup units 131, the message processing module 135 distributed to;
If receive synchronic command, then by lock unit 130 this document is had in the client of Share Permissions to other synchronously, by backup units 131 this document is backed up in the cloud storage system 2 simultaneously; Backup units 131 also comprises the broken module 133 of file, file is before backing up to cloud storage system 2, at first by the broken module 133 of file this document is carried out break process, generate a plurality of file fragmentations, it is how right that those file fragmentations are mirrored into, then the mode according to permutation and combination is stored in these file fragmentations in the different memory of cloud storage system 2, can guarantee like this safe and complete of file, if certain memory can't be worked, can also in other memories, get access to file fragmentation and be combined into complete file;
Described message processing module 135 comprises image information converting unit 136 and files in batch processing unit 137, can be according to after receiving the task that task allocation unit distributes, fileinfo is carried out alignment processing, file is transferred to lock unit 130 synchronously to other client after will processing, can allow to like this to support still can realize file-sharing between the client of different application pattern, and not need the user manually to carry out again the action of file or image information conversion;
Particularly, if message processing module 135 receives the 2D image and needs the instruction of this 2D image synchronization to the 3D equipment then processed this 2D image by image information converting unit 136, the image after the processing can be play in 3D equipment;
If receive the file of different-format in batches and need the instruction of consolidation form, then unified by 137 pairs of file formats of files in batch processing unit, then be uploaded in the cloud storage system 2, can make like this user share to other terminal according to required file format, need not the user and manually process;
Carry out in the unified process in file format, the 132 yuan of file process resources that can inquire about in the current cloud computing system of task schedule of apportionment, call the strong resource of file process ability, and divide the work to process to each file process resource the file allocation, effectively utilize the Internet resources in the cloud computing system, improve the speed of file process;
Described index information generation module 134 generates corresponding index information according to memory address and the attribute information of backup file in cloud storage system 2, and this index information is sent to distributed data base 12, carries out the path for obtaining this backup file next time.
Below will introduce the operation principle of described distributed data base.
As shown in Figure 4, be the structured flowchart of distributed data base 12, described distributed data base 12 comprises file destination enquiry module 120, file index information management module 121 and resource distribution module 122;
Described file destination enquiry module 120 is according to instruction administrative unit 13 needed fileinfos, from file index information management module 121, find corresponding file index information, and from cloud storage system 2, search this document, if can find respective file, then the index information of Query Result and respective file is notified to instruction administrative unit 13, accessed or obtain respective file by instruction administrative unit 13;
Described file index information management module 121 is used for the index information of backup at the file of cloud storage system 2 managed, and the routing information of access respective file is provided;
Described resource distribution module 122 is used for finding new available resources, and this resource distributed to cloud storage system 2, available resources with the expansion cloud storage system, after new user's registration is for example arranged, whether resource distribution module 122 is excavated this new user available storage resources, information resources, if have, then give this new storage resources or information resources assigns access address.
Below will specifically introduce cloud computing system of the present invention and process the method for file, as shown in Figure 5, the method may further comprise the steps:
S1: finish registration/login;
Start the cloud computing application modules in client 2, the registration that shows by client/login interface input username and password is finished registration/login;
S2: set up being connected between client and the cloud computing device, the cloud computing device distribute to framework of this client virtual IP address v6 network foundation node name, make this client carry out communication at this virtual IP address v6 network;
Particularly, the node allocation units 102 of cloud computing device can be distributed to the unique node name of this client after the each connection of client is finished, so that each client can both be with network on the stateful connection that is identified separately, also can accomplish directly mutual communications access between each client, the for example access from general common terminal to the terminal that only has private network IP address, private network refers to for example own family or company's Intranet, and common terminal refers to mobile phone, PC that can accessed web page;
S3: cloud computing device 1 receives from the fileinfo of client 3 and corresponding message processing directives, is resolved by 132 pairs of these message processing directives of task allocation unit of instruction administrative unit 13;
Particularly, task allocation unit 132 can check the available resources in the cloud computing system, this available resources can be provided by different clients, also can be provided by the heterogeneous networks service provider that forms cloud computing system, if available file process resource is arranged in the cloud computing system, then assigning the task to these available resourcess divides the work to process, for example the file conversion task of form 1 being given available resources 1 processes, giving available resources 3 with the file conversion task of form 2 processes, can finish with higher efficient like this task of file process, effectively utilize the resource in the cloud computing system; If current do not have an available file process resource, then task is transferred to 135 pairs of fileinfos of message processing module and processed, and proceed step S4;
S4: message processing module 135 carries out alignment processing according to receiving of task to fileinfo;
Particularly, described message processing module 135 can provide fileinfo is carried out the function that the 2D image information is converted to the batch process of 3D rendering information, different-format file and is uploaded to cloud storage system;
S5: the fileinfo after will processing is transferred to lock unit 130 synchronously to other client and/or back up in the cloud storage system 2.
Below only embodiments of the invention are described, but be not to limit the present invention, various variations or the modification made according to spirit of the present invention are all within the protection category of claim of the present invention.