Embodiment
It should be noted that, in the situation that not conflicting, embodiment and the feature in embodiment in the application can combine mutually.Describe below with reference to the accompanying drawings and in conjunction with the embodiments the present invention in detail.
Before describing the further details of various embodiments of the present invention, a suitable counting system structure of the principle can be used in the present invention is described with reference to Fig. 1.In the following description, except as otherwise noted, otherwise represent to describe various embodiments of the present invention with reference to the symbol of the action of being carried out by one or more computers and operation.Thus, be appreciated that and be sometimes called as processing unit that this class action that computer carries out and operation comprise computer to represent the manipulation of the signal of telecommunication of data with structured form.This manipulation transforms on data or the position in the accumulator system of computer, safeguard it, the operation of computer is reshuffled or changed to this mode of all understanding with those skilled in the art.The data structure of service data is the physical location of memory with the defined particular community of form of data.Yet although describe the present invention in above-mentioned context, it does not also mean that restrictively, as understood by those skilled in the art, the each side of hereinafter described action and operation also available hardware realizes.
Turn to accompanying drawing, wherein identical reference number refers to identical element, and principle of the present invention is shown in a suitable computing environment and realizes.Below describe the embodiments of the invention based on described, and should not think the alternative embodiment about clearly not describing herein and limit the present invention.
Fig. 1 shows the schematic diagram of an example computer architecture that can be used for these equipment.For purposes of illustration, the architecture of painting is only an example of proper environment, not the scope of application of the present invention or function is proposed to any limitation.This computing system should be interpreted as to the arbitrary assembly shown in Fig. 1 or its combination are had to any dependence or demand yet.
Principle of the present invention can or configure with other universal or special calculating or communication environment and operate.The example that is applicable to well-known computing system of the present invention, environment and configuration includes but not limited to, personal computer, server, multicomputer system, the system based on micro-processing, minicomputer, mainframe computer and the distributed computing environment (DCE) that comprises arbitrary said system or equipment.
As used in the present invention, term " module ", " assembly " or " unit " can refer to software object or the routine in the renewal system 200 of configuration information, carried out.Different assembly described herein, module, unit, engine and service can be implemented as object or the process of carrying out (for example,, as independent thread) in the access system 200 of flag bit.Although system and method described herein is preferably realized with software, the realization of the combination of hardware or software and hardware also may and be conceived.
In its most basic configuration, Fig. 1 is according to the structural representation of the system of obtaining of the virtual machine terminal data of first embodiment of the invention.As shown in Figure 1, the system of obtaining of this virtual machine terminal data comprises Cloud Server 20 and cloud client 10.
Cloud Server 20 sends virtual machine list.This virtual machine list can be the information list that comprises all virtual machines of current generation Cloud Server 20 connections, can be also the information list that comprises the part virtual machine of current generation Cloud Server 20 connections.Between Cloud Server 20 and virtual machine, can be by desktop, to transport agreement to establish a connection, desktop cloud agreement is a set of desktop virtual agreement realizing based on three-tier architecture, comprise common server, Cloud Server 20 and cloud client 10, wherein Cloud Server 20 is as control end.Cloud Server 20 sends this virtual machine list so that cloud client 10 receives this virtual machine list.
Cloud client 10 is set up communication relation with Cloud Server 20, and this cloud client 10, for sink virtual machine list, after any one or more virtual machines in virtual machine list issue terminal data intercepting order, receives the terminal data that Cloud Server 20 returns; Wherein, the terminal data on virtual machine is obtained in Cloud Server 20 use terminal data intercepting orders.
According to the embodiment of the present invention, after setting up communication relation by cloud client 10 and Cloud Server 20, cloud client 10 receives the virtual machine list sending with server, and any one or more virtual machines in virtual machine list are issued to terminal data intercepting order, Cloud Server 20 use terminal data intercepting orders are obtained the terminal data on virtual machine and return to and cloud client 10, make cloud client 10 can get the terminal data on virtual machine.When terminal data intercepting order is for video recording order, when terminal data view data is view data, realized the recording function in virtual machine, do not need to install extra software, user-friendly.
Concrete, the cloud client 10 in above-described embodiment is set up communication relation with Cloud Server 20, and its communication mode can be pipeline, shared drive, socket(Interprocess Communication Mechanism) etc. interprocess communication mode.When cloud client 10 and Cloud Server 20 are set up communication when being related to, cloud client 10 also sends authentication request to Cloud Server 20, with identity verification information, this identity information is the legal identify label of cloud client 10 own, the password that can verify, the partial content of inputting into while moving for program.Set up communication relation and verify legal after, cloud client 10 receives Cloud Server 20 and sends virtual machine list, and any one virtual machine or any number of virtual machine in this virtual machine list are issued to terminal data intercepting order, this terminal data intercepting order can be for intercepting the order of virtual machine view data, also can be video recording order, this video recording order is used for opening video recording process, and wherein, terminal data can be the view data after video recording.Cloud Server 20 is after the terminal data intercepting order that receives 10 transmissions of cloud client, by obtain the terminal data on virtual machine corresponding to this terminal data intercepting order with terminal data intercepting order, and this terminal data is sent to cloud client 10, cloud client 10 receives the terminal data that Cloud Server 20 returns.When terminal data is view data, cloud client 10 receives the view data that Cloud Server 20 returns.
Preferably, Cloud Server 20 comprises receiving system, Cloud Server processor and dispensing device.
Receiving system is for the order of receiving terminal data cutout.After cloud client 10 receives Cloud Server 20 these virtual machine lists of transmission, in 10 pairs of these virtual machine lists of cloud client, any one virtual machine or any number of virtual machine issue terminal data intercepting order, and this terminal data intercepting order is sent to Cloud Server 20, receiving system in Cloud Server 20 receives this terminal data intercepting order, for intercepting the terminal data of corresponding virtual machine.
Cloud Server processor, for start the function of obtaining of terminal data according to terminal data intercepting order, obtains the terminal data on corresponding virtual machine.After receiving system receives terminal data intercepting order, Cloud Server processor starts the function of obtaining of terminal data according to this terminal data intercepting order, read the specifying information of virtual machine in desktop cloud agreement, obtain with terminal data intercepting and order the terminal data on corresponding virtual machine.For the Cloud Server 20 in desktop cloud agreement, the data of all virtual machine desktops are all passed through Cloud Server 20, therefore can obtain by Cloud Server 20 terminal data of virtual machine.In addition, common server also can get view data concrete in virtual machine, but common server is only responsible for certain independent specific virtual machine, and Cloud Server 20 therefore can be here preferably Cloud Server 20 obtain terminal data, this terminal data can be the view data after the video recording of virtual machine desktop.
Dispensing device is for sending to cloud client 10 by the terminal data on the corresponding virtual machine getting.At Cloud Server 20 processors, start obtaining after function obtains the terminal data on the virtual machine corresponding with terminal data intercepting order of terminal datas, dispensing device sends to cloud client 10 by this terminal data according to predetermined mode.
Preferably, in terminal data intercepting order, be video recording order, in the situation that terminal data is view data, Cloud Server processor can comprise the first sub-processor and the second sub-processor.
The first sub-processor, for order starts recording function according to video recording, obtains the image instruction of being returned by cloud client 10 after video recording order carrying out.When cloud client 10 issues to virtual machine after video recording order, the first sub-processor starts recording function according to this video recording order, opens video recording process.After carrying out video recording order, cloud client 10 is returned to image instruction, and the first sub-processor obtains that cloud client 10 is returned to image instruction so that the intercepting view data corresponding with this image instruction.
The second sub-processor, for image instruction is reverted back to corresponding view data, gets the view data that recording function is truncated to.In Cloud Server 20, the virtual-machine data of needs video recordings is intercepted and captured, some image instructions are reverted back to corresponding view data simultaneously, what then continue sends to cloud client 10, and data are stored.
Concrete, the image instruction in such scheme refers to the data after can compressing view data, encrypting, and comprises a part of inner identity simultaneously and indicates.And the step that image instruction is reverted back to corresponding view data herein refers to compression, the anti-process of encrypting, can use compression algorithm and the cryptographic algorithm of any appropriate here.
Preferably, at server end also during original digital image data, also according in image instruction with identify label, go to judge the legitimacy of data.Wherein, identify label refers to the data that can represent own identity, can use unique identification code of outside input here, also can use the unique content of any differentiation of configuration to replace.
According to the embodiment of the present invention, for needs management and control virtual machine, realize the demand of background monitoring, can the seamless video recording on backstage, do not need to go to stare at virtual machine always, owing to mainly controlling by Cloud Server 20, desktop is recorded, retain a complete use record, and do not affect user's normal use.
Preferably, cloud client 10 comprises client end processor.This client end processor, for compression encrypted image data, generates video recording data, and after the form of conversion video recording data, the video recording data after format transformation is kept in the video directory of cloud client 10.After cloud client 10 receives view data, first this view data is cached, and by client end processor, view data compressed and encrypted to generate video recording data, then video recording data acquisition is encoded by predetermined coded format, such as can adopt the coded formats such as h264 to encode becoming with the data transaction of recording a video, being corresponding form, finally the video recording data after format transformation being kept in the video directory of cloud client 10 this locality.
According to the embodiment of the present invention, by cloud client 10, to Cloud Server 20, send video recording order, start recording function and opened video recording process, thereby realize desktop recording function in virtual machine, do not need extra software to install and just can complete desktop video recording, for needing, the user of desktop video recording is convenient.
Preferably, cloud client 10 also comprises player, and this player is used for receiving play command, according to play command search video directory, obtain the video recording data that need broadcasting, in the video recording data that needs are play, decompressing and deciphering, after generating played data, play played data.When user need to check the video recording of a certain virtual machine, video recording play command to cloud client 10 these virtual machines of input, player receives this play command, and according to the video directory of these play command search cloud client 10 this locality, to find the video recording data of corresponding virtual machine.After finding video recording data, player reads this video recording data, because the video recording data that are stored in the video directory of cloud client 10 this locality are the data through overcompression and after encrypting, therefore need to decompress and decryption processing to video recording data, thereby generate the played data that can play, that is to say and be reduced into video record data, then play the video record data after reduction.
According to the embodiment of the present invention, user can enable or forbid virtual machine desktop recording function as required at any time, and the Play Control to desktop video recording, convenient to use.
The embodiment of the present invention also provides a kind of acquisition methods of virtual machine terminal data, the method can be for the obtaining in system of the virtual machine terminal data of the embodiment of the present invention, and the system of obtaining of the virtual machine terminal data of the embodiment of the present invention also can be for carrying out the acquisition methods of the virtual machine terminal data of the embodiment of the present invention.
Fig. 2 is that the method comprises the steps: as shown in Figure 2 according to the flow chart of the acquisition methods of the virtual machine terminal data of first embodiment of the invention
Step S101, can receive the virtual machine list that Cloud Server 20 sends by cloud client 10.
Concrete, in above-mentioned steps implementation procedure, can set up communication relation and verify legal after, cloud client 10 receives Cloud Server 20 and sends virtual machine list, this virtual machine list can be the list that comprises all virtual machines of current generation Cloud Server 20 connections, can be also the list that comprises the part virtual machine of current generation Cloud Server 20 connections.Between Cloud Server 20 and virtual machine, can be by desktop, to transport agreement to establish a connection, desktop cloud agreement is a set of desktop virtual agreement realizing based on three-tier architecture, comprise common server, Cloud Server 20 and cloud client 10, wherein Cloud Server 20 is as control end.
Step S102, any one or more virtual machines in 10 pairs of virtual machine lists of cloud client issue terminal data intercepting order.
Concrete, in above-mentioned steps implementation procedure, this terminal data intercepting order can be for intercepting the order of virtual machine view data, also can be video recording order, video recording order is used for opening video recording process, and wherein, terminal data can be the view data after video recording.When user need to obtain in virtual machine list the terminal data of any or a plurality of virtual machines, can send request signal to cloud client 10, and issue terminal data intercepting order by 10 pairs of corresponding virtual machines of cloud client, in order to obtain the terminal data of virtual machine.
Step S103, cloud client 10 receives the terminal data that Cloud Server 20 returns, and wherein, the terminal data on virtual machine is obtained in Cloud Server 20 use terminal data intercepting orders.
Concrete, in above-mentioned steps implementation procedure, Cloud Server 20 is after the terminal data intercepting order that receives 10 transmissions of cloud client, by obtain the terminal data on virtual machine corresponding to this terminal data intercepting order with terminal data intercepting order, and this terminal data is sent to cloud client 10, cloud client 10 receives the terminal data that Cloud Server 20 returns.When terminal data is view data, cloud client 10 receives the view data that Cloud Server 20 returns.
According to the embodiment of the present invention, after setting up communication relation by cloud client 10 and Cloud Server 20, cloud client 10 receives the virtual machine list sending with server, and any one or more virtual machines in virtual machine list are issued to terminal data intercepting order, Cloud Server 20 use terminal data intercepting orders are obtained the terminal data on virtual machine and return to and cloud client 10, make cloud client 10 can get the terminal data on virtual machine.When terminal data intercepting order is for video recording order, when terminal data view data is view data, realized the recording function in virtual machine, do not need to install extra software, user-friendly.
Preferably, before step S101, the acquisition methods of virtual machine terminal data is further comprising the steps of:
Step S1, cloud client 10 is set up communication relation with Cloud Server 20, and sends authentication information to Cloud Server 20.
Cloud client 10, before receiving the virtual machine list that Cloud Server 20 sends, need to be set up communication relation with Cloud Server 20, and its communication mode can be pipeline, shared drive, socket(Interprocess Communication Mechanism) etc. interprocess communication mode.When cloud client 10 and Cloud Server 20 are set up communication when being related to, cloud client 10 also sends authentication request to Cloud Server 20, with identity verification information, this identity information is the legal identify label of cloud client 10 own, the password that can verify, the partial content of inputting into while moving for program.
Step S2, after Cloud Server 20 identity verification authorization informations are legal, Cloud Server 20 sends virtual machine list to cloud client 10.
After the identity information of verifying cloud client 10 is legal, between cloud client 10 and Cloud Server 20, can communicate, and realize the mutual of data, 20 of Cloud Servers are sent to cloud client 10 by virtual machine list.
Fig. 3 is according to the flow chart of the acquisition methods of the virtual machine terminal data of second embodiment of the invention.The acquisition methods of this virtual machine terminal data can be used as a kind of preferred implementation of acquisition methods of the virtual machine terminal data of above-described embodiment.The method comprises the steps: as shown in Figure 3
Step S201, cloud client 10 receives the virtual machine list that Cloud Server 20 sends.
Cloud client 10, before receiving the virtual machine list that Cloud Server 20 sends, need to be set up communication relation with Cloud Server 20, and its communication mode can be pipeline, shared drive, socket(Interprocess Communication Mechanism) etc. interprocess communication mode.When cloud client 10 and Cloud Server 20 are set up communication when being related to, cloud client 10 also sends authentication request to Cloud Server 20, with identity verification information, this identity information is the legal identify label of cloud client 10 own, the password that can verify, the partial content of inputting into while moving for program.Set up communication relation and verify legal after, cloud client 10 receives Cloud Server 20 and sends virtual machine list, this virtual machine list can be the list that comprises all virtual machines of current generation Cloud Server 20 connections, can be also the list that comprises the part virtual machine of current generation Cloud Server 20 connections.Between Cloud Server 20 and virtual machine, can be by desktop, to transport agreement to establish a connection, desktop cloud agreement is a set of desktop virtual agreement realizing based on three-tier architecture, comprise common server, Cloud Server 20 and cloud client 10, wherein Cloud Server 20 is as control end.
Step S202, any one or more virtual machines in 10 pairs of virtual machine lists of cloud client issue terminal data intercepting order.
This terminal data intercepting order can be for intercepting the order of virtual machine view data, can be also video recording order, and video recording order is used for opening video recording process, and wherein, terminal data can be the view data after video recording.When user need to obtain in virtual machine list the terminal data of any or a plurality of virtual machines, can send request signal to cloud client 10, and issue terminal data intercepting order by 10 pairs of corresponding virtual machines of cloud client, in order to obtain the terminal data of virtual machine.
Step S203, Cloud Server 20 receiving terminal data cutout orders.
After cloud client 10 receives Cloud Server 20 these virtual machine lists of transmission, in 10 pairs of these virtual machine lists of cloud client, any one virtual machine or any number of virtual machine issue terminal data intercepting order, and this terminal data intercepting order is sent to Cloud Server 20, Cloud Server 20 receives this terminal data intercepting order, for intercepting the terminal data of corresponding virtual machine.
Step S204, according to the function of obtaining of data cutout order startup terminal data, obtains the terminal data on corresponding virtual machine.
After receiving system receives terminal data intercepting order, Cloud Server 20 processors start the function of obtaining of terminal data according to this terminal data intercepting order, read the specifying information of virtual machine in desktop cloud agreement, obtain with terminal data intercepting and order the terminal data on corresponding virtual machine.For the Cloud Server 20 in desktop cloud agreement, the data of all virtual machine desktops are all passed through Cloud Server 20, therefore can obtain by Cloud Server 20 terminal data of virtual machine.In addition, common server also can get view data concrete in virtual machine, but common server is only responsible for certain independent specific virtual machine, and Cloud Server 20 therefore can be here preferably Cloud Server 20 obtain terminal data, this terminal data can be the view data after the video recording of virtual machine desktop.
Step S205, sends to cloud client 10 by the terminal data on the corresponding virtual machine getting.
At Cloud Server 20 processors, start obtaining after function obtains the terminal data on the virtual machine corresponding with terminal data intercepting order of terminal datas, this terminal data is sent to cloud client 10 according to predetermined mode.
Step S206, cloud client 10 receives the terminal data that Cloud Server 20 returns, and wherein, the terminal data on virtual machine is obtained in Cloud Server 20 use terminal data intercepting orders.
Cloud Server 20 is after the terminal data intercepting order that receives 10 transmissions of cloud client, by obtain the terminal data on virtual machine corresponding to this terminal data intercepting order with terminal data intercepting order, and this terminal data is sent to cloud client 10, cloud client 10 receives the terminal data that Cloud Server 20 returns.When terminal data is view data, cloud client 10 receives the view data that Cloud Server 20 returns.
Preferably, in terminal data intercepting order, be video recording order, in the situation that terminal data is view data, step S204 comprises step S2041 and step S2042.
Step S2041, according to video recording, order starts recording function to Cloud Server 20, obtains the image instruction of being returned by cloud client 10 after video recording order carrying out.
When cloud client 10 issues to virtual machine after video recording order, Cloud Server 20 starts recording function according to this video recording order, opens video recording process.After carrying out video recording order, cloud client 10 is returned to image instruction, and Cloud Server 20 obtains that cloud client 10 is returned to image instruction so that the intercepting view data corresponding with this image instruction.
Step S2041, Cloud Server 20 reverts back corresponding view data by image instruction, gets the view data that recording function is truncated to.In Cloud Server 20, the virtual-machine data of needs video recordings is intercepted and captured, some image instructions are reverted back to corresponding view data simultaneously, what then continue sends to cloud client 10, and data are stored.
Concrete, the image instruction in such scheme refers to the data after can compressing view data, encrypting, and comprises a part of inner identity simultaneously and indicates.And the step that image instruction is reverted back to corresponding view data herein refers to compression, the anti-process of encrypting, can use compression algorithm and the cryptographic algorithm of any appropriate here.
Preferably, at server end also during original digital image data, also according in image instruction with identify label, go to judge the legitimacy of data.Wherein, identify label refers to the data that can represent own identity, can use unique identification code of outside input here, also can use the unique content of any differentiation of configuration to replace.
According to the embodiment of the present invention, for needs management and control virtual machine, realize the demand of background monitoring, can the seamless video recording on backstage, do not need to go to stare at virtual machine always, owing to mainly controlling by Cloud Server 20, desktop is recorded, retain a complete use record, and do not affect user's normal use.
Preferably, after step S206, the acquisition methods of this virtual machine terminal data can also comprise the following steps:
Step S7, cloud client 10 compression encrypted image data, generate video recording data.
After cloud client 10 receives view data, first this view data is cached, and by client end processor, view data is compressed and encrypted to generate video recording data.
Step S8, the form of conversion video recording data, and the video recording data after format transformation are kept in the video directory of cloud client 10.
Then video recording data acquisition is encoded by predetermined coded format, such as can adopt the coded formats such as h264 to encode becoming with the data transaction of recording a video, being corresponding form, finally the video recording data after format transformation being kept in the video directory of cloud client 10 this locality.
According to the embodiment of the present invention, by cloud client 10, to Cloud Server 20, send video recording order, start recording function and opened video recording process, thereby realize desktop recording function in virtual machine, do not need extra software to install and just can complete desktop video recording, for needing, the user of desktop video recording is convenient.
Preferably, after step S8, the acquisition methods of this virtual machine terminal data can also comprise the steps:
Step S9, receives play command, according to play command search video directory, obtains the video recording data that need broadcasting.When user need to check the video recording of a certain virtual machine, video recording play command to cloud client 10 these virtual machines of input, player receives this play command, and according to the video directory of these play command search cloud client 10 this locality, to find the video recording data of corresponding virtual machine, and obtain this video recording data.
Step S10, the video recording data that needs are play decompress and decipher, and generate played data.After finding video recording data, player reads this video recording data, because the video recording data that are stored in the video directory of cloud client 10 this locality are the data through overcompression and after encrypting, therefore need to decompress and decryption processing to video recording data, thereby generate the played data that can play, that is to say and be reduced into video record data.
Step S11, plays played data.After being decompressed and deciphered by the video recording data that needs are play, the played data that generation can be play, that is to say and be reduced into video record data, then plays this video record data
According to the embodiment of the present invention, user can enable or forbid virtual machine desktop recording function as required at any time, and the Play Control to desktop video recording, convenient to use.
It should be noted that, in the step shown in the flow chart of accompanying drawing, can in the computer system such as one group of computer executable instructions, carry out, and, although there is shown logical order in flow process, but in some cases, can carry out shown or described step with the order being different from herein.
The embodiment of the present invention also provides the acquisition methods of another kind of virtual machine terminal data, and Fig. 4 is according to the flow chart of the acquisition methods of the virtual machine terminal data of further embodiment of this invention.As shown in Figure 4, the method comprises the following steps:
Step S301, Cloud Server 20 sends virtual machine list to cloud client 10.
This virtual machine list can be the list that comprises all virtual machines of current generation Cloud Server 20 connections, can be also the list that comprises the part virtual machine of current generation Cloud Server 20 connections.Between Cloud Server 20 and virtual machine, can be by desktop, to transport agreement to establish a connection, desktop cloud agreement is a set of desktop virtual agreement realizing based on three-tier architecture, comprise common server, Cloud Server 20 and cloud client 10, wherein Cloud Server 20 is as control end.Cloud Server 20 sends these virtual machine lists to cloud client 10, so that cloud client 10 receives these virtual machine lists and intercepts the terminal data of virtual machine.
Step S302, Cloud Server 20 gets the terminal data intercepting order that cloud client 10 sends, and wherein, any one or more virtual machines in 10 pairs of virtual machine lists of cloud client issue terminal data intercepting order.
Cloud Server 20 is set up communication relation with cloud client 10, and its communication mode can be pipeline, shared drive, socket(Interprocess Communication Mechanism) etc. interprocess communication mode.When Cloud Server 20 and cloud client 10 are set up communication when being related to, cloud client 10 also sends authentication request to Cloud Server 20, with identity verification information, this identity information is the legal identify label of cloud client 10 own, the password that can verify, the partial content of inputting into while moving for program.Set up communication relation and verify legal after, cloud client 10 receives Cloud Server 20 and sends virtual machine list, and any one virtual machine or any number of virtual machine in this virtual machine list are issued to terminal data intercepting order, this terminal data intercepting order can be for intercepting the order of virtual machine view data, also can be video recording order, this video recording order is used for opening video recording process, and wherein, terminal data can be the view data after video recording.
Step S303, the terminal data on virtual machine is obtained in Cloud Server 20 use terminal data intercepting orders.
After Cloud Server 20 receives terminal data intercepting order, according to this terminal data intercepting order, start the function of obtaining of terminal data, read the specifying information of virtual machine in desktop cloud agreement, obtain with terminal data intercepting and order the terminal data on corresponding virtual machine.For the Cloud Server 20 in desktop cloud agreement, the data of all virtual machine desktops are all passed through Cloud Server 20, therefore can obtain by Cloud Server 20 terminal data of virtual machine.In addition, common server also can get view data concrete in virtual machine, but common server is only responsible for certain independent specific virtual machine, and Cloud Server 20 therefore can be here preferably Cloud Server 20 obtain terminal data, this terminal data can be the view data after the video recording of virtual machine desktop.
Step S304, Cloud Server 20 returns to terminal data to cloud client 10.
At Cloud Server 20 processors, start obtaining after function obtains the terminal data on the virtual machine corresponding with terminal data intercepting order of terminal datas, dispensing device sends to cloud client 10 by this terminal data according to predetermined mode.
According to the embodiment of the present invention, by cloud client 10, receive the virtual machine list sending with server, and any one or more virtual machines in virtual machine list are issued to terminal data intercepting order, Cloud Server 20 use terminal data intercepting orders are obtained the terminal data on virtual machine and return to and cloud client 10, make cloud client 10 can get the terminal data on virtual machine.When terminal data intercepting order is for video recording order, when terminal data view data is view data, realized the recording function in virtual machine, do not need to install extra software, user-friendly.
The embodiment of the present invention also provides a kind of acquisition device of virtual machine terminal data.It should be noted that, the acquisition methods of the virtual machine terminal data that the acquisition device of the virtual machine terminal data of the embodiment of the present invention can provide for the execution embodiment of the present invention, the acquisition device of the virtual machine terminal data that the acquisition methods of the virtual machine terminal data of the embodiment of the present invention also can provide by the embodiment of the present invention is carried out.
Fig. 5 is according to the structural representation of the acquisition device of the virtual machine terminal data of first embodiment of the invention.As shown in Figure 5, the acquisition device of this virtual machine terminal data comprises: the first receiver module 101, trigger module 102 and the second receiver module 103.
Wherein, the virtual machine list that the first receiver module 101 sends for receiving Cloud Server 20.
Concrete, in above-mentioned example implementation process, cloud client 10 is before receiving the virtual machine list of Cloud Server 20 transmissions, need to set up communication relation with Cloud Server 20, its communication mode can be pipeline, shared drive, socket(Interprocess Communication Mechanism) etc. interprocess communication mode.When cloud client 10 and Cloud Server 20 are set up communication when being related to, cloud client 10 also sends authentication request to Cloud Server 20, with identity verification information, this identity information is the legal identify label of cloud client 10 own, the password that can verify, the partial content of inputting into while moving for program.Set up communication relation and verify legal after, by the first receiver module 101, receive Cloud Server 20 and send virtual machine list, this virtual machine list can be the list that comprises all virtual machines of current generation Cloud Server 20 connections, can be also the list that comprises the part virtual machine of current generation Cloud Server 20 connections.Between Cloud Server 20 and virtual machine, can be by desktop, to transport agreement to establish a connection, desktop cloud agreement is a set of desktop virtual agreement realizing based on three-tier architecture, comprise common server, Cloud Server 20 and cloud client 10, wherein Cloud Server 20 is as control end.
Trigger module 102 is for issuing terminal data intercepting order to any one or more virtual machines of virtual machine list.
Concrete, this terminal data intercepting order can be for intercepting the order of virtual machine view data, can be also video recording order, and video recording order is used for opening video recording process, and wherein, terminal data can be the view data after video recording.When user need to obtain in virtual machine list the terminal data of any or a plurality of virtual machines, can send request signal to cloud client 10, and issue terminal data intercepting order by 102 pairs of corresponding virtual machines of trigger module, in order to obtain the terminal data of virtual machine.
The second receiver module 103 receives for cloud client 10 terminal data that Cloud Server 20 returns, and wherein, the terminal data on virtual machine is obtained in Cloud Server 20 use terminal data intercepting orders.
Cloud Server 20 is after the terminal data intercepting order that receives 10 transmissions of cloud client, by obtain the terminal data on virtual machine corresponding to this terminal data intercepting order with terminal data intercepting order, and this terminal data is sent to cloud client 10, by the second receiver module 103, receive the terminal data that Cloud Server 20 returns.When terminal data is view data, the second receiver module 103 receives the view data that Cloud Server 20 returns.
According to the embodiment of the present invention, after setting up communication relation by cloud client 10 and Cloud Server 20, cloud client 10 receives the virtual machine list sending with server, and any one or more virtual machines in virtual machine list are issued to terminal data intercepting order, Cloud Server 20 use terminal data intercepting orders are obtained the terminal data on virtual machine and return to and cloud client 10, make cloud client 10 can get the terminal data on virtual machine.When terminal data intercepting order is for video recording order, when terminal data view data is view data, realized the recording function in virtual machine, do not need to install extra software, user-friendly.
Fig. 6 is according to the structural representation of the acquisition device of the virtual machine terminal data of second embodiment of the invention.The acquisition device of the virtual machine terminal data of this embodiment can be used as a kind of preferred implementation of acquisition device of the virtual machine terminal data of above-described embodiment.As shown in Figure 6, the acquisition device of this virtual machine terminal data comprises: the first receiver module 101, trigger module 102, the second receiver module 103, compress-encrypt module 104 and processing module 105.The first receiver module 101, trigger module 102 and the second receiver module 103 have identical function with the first receiver module 101 shown in Fig. 5, trigger module 102 and the second receiver module 103, do not repeat here.
In terminal data intercepting order, be video recording order, in the situation that terminal data is view data, compress-encrypt module 104, for cloud client 10 compression encrypted image data, generates video recording data.After cloud client 10 receives view data, first this view data is cached, and compresses and encrypt to generate video recording data by 104 pairs of view data of compress-encrypt module.
Processing module 105, for changing the form of video recording data, and is kept at the video recording data after format transformation in the video directory of cloud client 10.After view data being compressed and is encrypted, video recording data acquisition is encoded by predetermined coded format, such as can adopt the coded formats such as h264 to encode becoming with the data transaction of recording a video, it is corresponding form, finally the video recording data after format transformation are kept in the video directory of cloud client 10 this locality, so that user searches corresponding video recording data from video directory.
Preferably, the acquisition device of virtual machine terminal data also comprises sub-receiver module, search module, decompression deciphering module and playing module.
Sub-receiver module is used for receiving play command.When user need to check the video recording of a certain virtual machine, to the video recording play command of cloud client 10 these virtual machines of input, sub-receiver module, for receiving the video recording play command of this user's input, triggers video recording data and plays.
Search module, for according to play command search video directory, obtains the video recording data that need broadcasting.Owing to there being video recording data in the video directory of client terminal local, these video recording data are the video recording data that view data that Cloud Server 20 returns obtains after overcompression and encryption, by search module, in video directory, search for, find corresponding video recording data, and obtain this video recording data.
Decompression deciphering module decompresses and deciphers for the video recording data that needs are play, and generates played data.Because the video recording data that are stored in the video directory of cloud client 10 this locality are the data through overcompression and after encrypting, therefore need to video recording data, decompress accordingly and decryption processing by decompression deciphering module, that is to say video recording data are reduced, thereby generate the played data that can play.
Playing module is used for playing played data.The video recording data of needs being play when decompression deciphering module are reduced processing, and the played data obtaining can be directly used in broadcasting, and user can play this played data by playing module.
Preferably, the acquisition device of virtual machine terminal data also comprises: communication module and sending module.
Communication module is set up communication relation for Cloud Server 20, and sends authentication information to Cloud Server 20.Cloud client 10, before receiving the virtual machine list that Cloud Server 20 sends, need to be set up communication relation with Cloud Server 20, and its communication mode can be pipeline, shared drive, socket(Interprocess Communication Mechanism) etc. interprocess communication mode.When cloud client 10 and Cloud Server 20 are set up communication when being related to, cloud client 10 also sends authentication request to Cloud Server 20, with identity verification information, this identity information is the legal identify label of cloud client 10 own, the password that can verify, the partial content of inputting into while moving for program.
Sending module is for after Cloud Server 20 identity verification authorization informations are legal, and Cloud Server 20 sends virtual machine list to cloud client 10.After the identity information of verifying cloud client 10 is legal, between cloud client 10 and Cloud Server 20, can communicate, and realize the mutual of data, 20 of Cloud Servers are sent to cloud client 10 by virtual machine list.
As seen through the above description of the embodiments, those skilled in the art can be well understood to the mode that the application can add essential general hardware platform by software and realizes.Understanding based on such, the part that the application's technical scheme contributes to prior art in essence in other words can embody with the form of software product, this computer software product can be stored in storage medium, as ROM/RAM, magnetic disc, CD etc., comprise that some instructions are with so that a computer equipment (can be personal computer, server, or the network equipment etc.) carry out the method described in some part of each embodiment of the application or embodiment.
Each embodiment in this specification all adopts the mode of going forward one by one to describe, between each embodiment identical similar part mutually referring to, each embodiment stresses is the difference with other embodiment.Especially, for system embodiment, because it is substantially similar in appearance to embodiment of the method, so description is fairly simple, relevant part is referring to the part explanation of embodiment of the method.
The application can be used in numerous general or special purpose computingasystem environment or configuration.For example: personal computer, server computer, handheld device or portable set, plate equipment, multicomputer system, the system based on microprocessor, set top box, programmable consumer-elcetronics devices, network PC, minicom, mainframe computer, comprise distributed computing environment (DCE) of above any system or equipment etc.
Obviously, those skilled in the art should be understood that, above-mentioned each module of the present invention or each step can realize with general calculation element, they can concentrate on single calculation element, or be distributed on the network that a plurality of calculation elements form, alternatively, they can be realized with the executable program code of calculation element, thereby, they can be stored in storage device and be carried out by calculation element, or they are made into respectively to each integrated circuit modules, or a plurality of modules in them or step are made into single integrated circuit module to be realized.Like this, the present invention is not restricted to any specific hardware and software combination.
The foregoing is only the preferred embodiments of the present invention, be not limited to the present invention, for a person skilled in the art, the present invention can have various modifications and variations.Within the spirit and principles in the present invention all, any modification of doing, be equal to replacement, improvement etc., within all should being included in protection scope of the present invention.