CN104519104A - Power source control method and equipment - Google Patents

Power source control method and equipment Download PDF

Info

Publication number
CN104519104A
CN104519104A CN201310463580.3A CN201310463580A CN104519104A CN 104519104 A CN104519104 A CN 104519104A CN 201310463580 A CN201310463580 A CN 201310463580A CN 104519104 A CN104519104 A CN 104519104A
Authority
CN
China
Prior art keywords
energy control
instruction
control instruction
client
power supply
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
CN201310463580.3A
Other languages
Chinese (zh)
Other versions
CN104519104B (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.)
Huawei Cloud Computing Technologies Co Ltd
Original Assignee
Huawei Digital Technologies Suzhou 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 Digital Technologies Suzhou Co Ltd filed Critical Huawei Digital Technologies Suzhou Co Ltd
Priority to CN201310463580.3A priority Critical patent/CN104519104B/en
Priority to PCT/CN2014/078479 priority patent/WO2015043215A1/en
Publication of CN104519104A publication Critical patent/CN104519104A/en
Application granted granted Critical
Publication of CN104519104B publication Critical patent/CN104519104B/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/10Protocols in which an application is distributed across nodes in the network
    • 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/02Protocols based on web technology, e.g. hypertext transfer protocol [HTTP]
    • H04L67/025Protocols based on web technology, e.g. hypertext transfer protocol [HTTP] for remote control or remote monitoring of applications
    • 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/08Protocols specially adapted for terminal emulation, e.g. Telnet

Abstract

An embodiment of the invention provides a power source control method and equipment, relates to the field of power source control and aims at synchronously realizing control on power sources of virtual machines in a client side and a cloud server. The power source control method includes that the cloud server acquires a first power source control instruction and determines a second power source control instruction according to the same; the cloud server controls power sources of corresponding virtual machines in the cloud server according to the second power source control instruction or correspondingly processes the second power source control instruction to control the power source of the client side. The power source control method is used for power source control.

Description

A kind of method and apparatus of Energy control
Technical field
The present invention relates to Energy control field, particularly relate to a kind of method and apparatus of Energy control.
Background technology
In the application scenarios of desktop cloud, user can access Cloud Server by thin-client, this Cloud Server provides corresponding virtual machine for user, virtual machine refer to by software simulation have complete hardware system function, the complete computer operated in a completely isolated environment.Usually multiple stage virtual machine can be simulated on Cloud Server, namely on the memory device of this Cloud Server, one section of memory space is divided for each virtual machine, for storage operation system and user data, each virtual machine can a corresponding user, and virtual machine provides cloud desktop for this user.User realizes the access to virtual machine by thin-client access cloud desktop, thus accesses cross-platform application program.
In existing desktop cloud scene, user needs to complete Energy control to virtual machine by the power operation of cloud desktop, completes the Energy control to thin-client more afterwards by the power operation of thin-client.
But, the power operation of user to wherein either end (as virtual machine or thin-client) can only complete the Energy control to this either end, carry out power operation with regard to needs respectively by cloud desktop and thin-client to the control of virtual machine and thin-client power supply to realize, this just greatly reduces the experience of user.
Summary of the invention
Embodiments of the invention provide a kind of method and apparatus of Energy control, synchronously to realize the Energy control to client and server.
For achieving the above object, embodiments of the invention adopt following technical scheme:
First aspect, provides a kind of method of Energy control, comprising:
Cloud Server obtains the first Energy control instruction;
According to described first Energy control instruction determination second source control command;
Control the power supply of virtual machine corresponding in described Cloud Server according to described second source control command, wherein, described first Energy control instruction is the control command of the power supply controlling described client; Described second source control command is the control command of the power supply controlling virtual machine corresponding in described Cloud Server; Or perform respective handling to described second source control command, to control the power supply of described client, wherein, described first Energy control instruction is the control command of the power supply controlling virtual machine corresponding in described Cloud Server; Described second source control command is the control command of the power supply controlling described client.
In the first possible implementation of first aspect, described Cloud Server obtains the first Energy control instruction and comprises:
Receive the described first Energy control instruction that described client sends; Wherein, described first Energy control instruction is the instruction of the power supply controlling described client;
The described power supply controlling virtual machine corresponding in described Cloud Server according to described second source control command, or, respective handling is performed to described second source control command, to control the power supply of described client, comprising:
The power supply of virtual machine corresponding in described Cloud Server is controlled according to described second source control command.
In conjunction with the implementation that the first is possible, in the implementation that the second is possible, describedly to comprise according to described first Energy control instruction determination second source control command:
Determine the first Energy control type that described first Energy control instruction is corresponding;
Be second source Control Cooling according to preset strategy by described first Energy control Type mapping; Wherein, described preset strategy comprises the corresponding relation of described first Energy control type and described second source Control Cooling;
The 3rd corresponding Energy control instruction is determined according to described second source Control Cooling; Wherein, described 3rd Energy control instruction is the instruction of the power supply controlling described client;
Described second source control command is determined according to described 3rd Energy control instruction.
In conjunction with first aspect, in the third possible implementation of first aspect, described Cloud Server obtains the first Energy control instruction and comprises:
After the 4th Energy control command mappings received from described client is the first Energy control instruction by mapped device, receive the first Energy control instruction that described mapped device sends, wherein, the corresponding 3rd Energy control type of described first Energy control instruction is the instruction of the power supply controlling described client; The corresponding 4th Energy control type of described 4th Energy control instruction is the control command of the power supply controlling described client;
The described power supply controlling virtual machine corresponding in described Cloud Server according to described second source control command, or, respective handling is performed to described second source control command, to control the power supply of described client, comprising:
The power supply of virtual machine corresponding in described Cloud Server is controlled according to described second source control command.
In conjunction with first aspect, in first aspect the 4th kind of possible implementation, described Cloud Server obtains the first Energy control instruction and comprises:
Obtain the first Energy control instruction, wherein, described first Energy control instruction is the instruction of the power supply controlling virtual machine corresponding in described Cloud Server;
The described power supply controlling virtual machine corresponding in described Cloud Server according to described second source control command, or, respective handling is performed to described second source control command, to control the power supply of described client, comprising:
Respective handling is performed, to control the power supply of described client to described second source control command.
In conjunction with first aspect the 4th kind of possible implementation, in the 5th kind of possible implementation, described to described second source control command execution respective handling, comprise with the power supply controlling described client:
Described second source control command is sent to described client, so that described client controls the power supply of described client according to described second source control command; Or,
The 5th Energy control instruction is determined according to described second source control command, and described 5th Energy control instruction is sent to described client, so that described client controls the power supply of described client according to described 5th Energy control instruction, wherein, described 5th Energy control instruction is the instruction of the power supply controlling described client.
In conjunction with the 5th kind of possible implementation, in the 6th kind of possible implementation, describedly determine that the 5th Energy control instruction comprises according to described second source control command:
Determine the 5th Energy control type that described second source control command is corresponding;
Be the 6th Energy control type according to preset strategy by described 5th Energy control Type mapping; Wherein, described preset strategy comprises the corresponding relation of described 5th Energy control type and described 6th Energy control type;
The 5th corresponding Energy control instruction is determined according to described 6th Energy control type.
In conjunction with the 4th kind of possible implementation, in the 7th kind of possible implementation, described to described second source control command execution respective handling, comprise with the power supply controlling described client:
Described second source control command is sent to mapped device, so that described mapped device determines the 6th Energy control instruction according to described second source control command, and described 6th Energy control instruction is sent to described client, so that described client controls the power supply of described client according to described 6th Energy control instruction;
Wherein, the corresponding 7th Energy control type of described second source control command is the control command of the power supply controlling client; The corresponding 8th Energy control type of described 6th Energy control instruction is the control command of the power supply controlling client.
Second aspect, provides a kind of power control method, comprising:
Client receives the first Energy control instruction that Cloud Server sends, and wherein, controls the control command of described client during described first Energy control instruction;
The power supply of described client is controlled according to described first Energy control instruction.
In the first possible implementation of second aspect, the first Energy control instruction that described client receives Cloud Server transmission comprises:
Receive the first Energy control instruction that Cloud Server sends; Or,
After the second source control command from described cloud server is mapped as the first Energy control instruction by mapped device, receive the first Energy control instruction that described mapped device sends, wherein, the corresponding first Energy control type of described first Energy control instruction is the instruction of the power supply controlling described client; The corresponding second source Control Cooling of described second source control command is the instruction of the power supply controlling described client.
The third aspect, provides a kind of method of Energy control, comprising:
Client obtains the first Energy control instruction;
Perform respective handling to described first Energy control instruction, to control the power supply of virtual machine corresponding in Cloud Server, wherein, described first Energy control instruction is the control command controlling described client.
In implementation possible in the third aspect first, described to described first Energy control instruction execution respective handling, comprise with the power supply controlling virtual machine corresponding in Cloud Server:
Described first Energy control instruction is sent to described Cloud Server, so that described Cloud Server is according to described first Energy control instruction determination second source control command, and the power supply of virtual machine corresponding in described Cloud Server is controlled according to described second source control command, wherein, described second source control command is the instruction of the power supply controlling virtual machine corresponding in described Cloud Server; Or,
Described first Energy control instruction is sent to mapped device, so that described mapped device determines the 3rd Energy control instruction according to described first Energy control instruction, and described 3rd Energy control instruction is sent to described Cloud Server, so that described Cloud Server determines the 4th Energy control instruction according to described 3rd Energy control instruction, and the power supply of virtual machine corresponding in described Cloud Server is controlled according to described 4th Energy control instruction, wherein, described first Energy control instruction comprises the first Energy control type, described 3rd Energy control instruction comprises the 3rd Energy control type, it is the Energy control instruction controlling described client, the instruction of the power supply of virtual machine corresponding in described Cloud Server is controlled during described 4th Energy control instruction.
Fourth aspect, provides a kind of Cloud Server, comprising: acquiring unit, for obtaining the first Energy control instruction;
Processing unit, for the first Energy control instruction determination second source control command obtained according to described acquiring unit;
Described processing unit also for, to control in described Cloud Server the power supply of corresponding virtual machine according to described second source control command, wherein, described first Energy control instruction is the control command of the power supply controlling described client; Described second source control command is the control command of the power supply controlling virtual machine corresponding in described Cloud Server;
Or also for performing respective handling to described second source control command, to control the power supply of described client, wherein, described first Energy control instruction is the control command of the power supply controlling virtual machine corresponding in described Cloud Server; Described second source control command is the control command of the power supply controlling described client.
In the first possible implementation of fourth aspect, described acquiring unit also for, receive described client send described first Energy control instruction; Wherein, described first Energy control instruction is the instruction of the power supply controlling described client;
Described processing unit specifically for, to control in described Cloud Server the power supply of corresponding virtual machine according to described second source control command.
In conjunction with the implementation that the first is possible, in the implementation that the second is possible, described processing unit specifically for, determine the first Energy control type that described first Energy control instruction is corresponding, be second source Control Cooling according to preset strategy by described first Energy control Type mapping, determine the 3rd corresponding Energy control instruction according to described second source Control Cooling, and determine described second source control command according to described 3rd Energy control instruction;
Wherein, described preset strategy comprises the corresponding relation of described first Energy control type and described second source Control Cooling; Described 3rd Energy control instruction is the instruction of the power supply controlling described client.
In conjunction with fourth aspect, in the third possible implementation of fourth aspect, described acquiring unit specifically for, after the 4th Energy control command mappings received from described client is the first Energy control instruction by mapped device, receive the first Energy control instruction that described mapped device sends, wherein, the corresponding 3rd Energy control type of described first Energy control instruction is the instruction of the power supply controlling described client; The corresponding 4th Energy control type of described 4th Energy control instruction is the control command of the power supply controlling described client;
Described processing unit specifically for, to control in described Cloud Server the power supply of corresponding virtual machine according to described second source control command.
In conjunction with fourth aspect, in the 4th kind of possible implementation, described acquiring unit specifically for, obtain the first Energy control instruction; Wherein, described first Energy control instruction is the instruction of the power supply controlling virtual machine corresponding in described Cloud Server;
Described processing unit specifically for, respective handling is performed, to control the power supply of described client to described second source control command.
In conjunction with fourth aspect the 4th kind of possible implementation, in the 5th kind of possible implementation, described processing unit, specifically for described second source control command is sent to described client, so that described client controls the power supply of described client according to described second source control command;
Or,
Specifically for determining the 5th Energy control instruction according to described second source control command, and described 5th Energy control instruction is sent to described client, so that described client controls the power supply of described client according to described 5th Energy control instruction, wherein, described 5th Energy control instruction is the instruction of the power supply controlling described client.
In conjunction with the 5th kind of possible implementation, in the 6th kind of possible implementation, described processing unit specifically for, determine the 5th Energy control type that described second source control command is corresponding, be the 6th Energy control type according to preset strategy by described 5th Energy control Type mapping, and determine the 5th corresponding Energy control instruction according to described 6th Energy control type;
Wherein, described preset strategy comprises the corresponding relation of described 5th Energy control type and described 6th Energy control type.
In conjunction with the 4th kind of possible implementation, in the 7th kind of possible implementation, described processing unit also for, described second source control command is sent to mapped device, so that described mapped device determines the 6th Energy control instruction according to described second source control command, and described 6th Energy control instruction is sent to described client, so that described client controls the power supply of described client according to described 6th Energy control instruction;
Wherein, the corresponding 7th Energy control type of described second source control command is the control command of the power supply controlling client; The corresponding 8th Energy control type of described 6th Energy control instruction is the control command of the power supply controlling client.
5th aspect, provides a kind of client, comprising:
Acquiring unit, for receiving the first Energy control instruction that Cloud Server sends, wherein, described first Energy control instruction is the control command controlling described client;
Processing unit, the first Energy control instruction for obtaining according to described acquiring unit controls the power supply of described client.
In the 5th in the first possible implementation, described acquiring unit specifically for, receive Cloud Server send the first Energy control instruction; Or,
Specifically for after the second source control command from described cloud server is mapped as the first Energy control instruction by mapped device, receive the first Energy control instruction that described mapped device sends, wherein, the corresponding first Energy control type of described second source control command is the instruction of the power supply controlling described client; The corresponding first Energy control type of described first Energy control instruction is the instruction of the power supply controlling described client.
6th aspect, provides a kind of client, comprising:
Acquiring unit, for obtaining the first Energy control instruction;
Processing unit, performs respective handling for the first Energy control instruction obtained described acquiring unit, and to control the power supply of virtual machine corresponding in Cloud Server, wherein, described first Energy control instruction is the control command controlling described client.
In the 6th in the first possible implementation, described processing unit, specifically for described first Energy control instruction is sent to described Cloud Server, so that described Cloud Server is according to described first Energy control instruction determination second source control command, and the power supply of virtual machine corresponding in described Cloud Server is controlled according to described second source control command, wherein, described second source control command is the instruction of the power supply controlling virtual machine corresponding in described Cloud Server; Or,
Specifically for described first Energy control instruction is sent to mapped device, so that described mapped device determines the 3rd Energy control instruction according to described first Energy control instruction, and described 3rd Energy control instruction is sent to described Cloud Server, so that described Cloud Server determines the 4th Energy control instruction according to described 3rd Energy control instruction, and the power supply of virtual machine corresponding in described Cloud Server is controlled according to described 4th Energy control instruction, wherein, described first Energy control instruction comprises the first Energy control type, described 3rd Energy control instruction comprises the 3rd Energy control type, it is the Energy control instruction controlling described client, the instruction of the power supply of virtual machine corresponding in described Cloud Server is controlled during described 4th Energy control instruction.
By adopting such scheme, Cloud Server can by receive from client to should the Energy control command mappings of client be to should the Energy control instruction of virtual machine in Cloud Server, and according to this instruction, Energy control is carried out to virtual machine corresponding in this Cloud Server; Like this, user can be made when not needing to use desktop cloud resource, and virtual machine corresponding in Cloud Server can discharge corresponding resource in time, ensures the utilance of resource, can reduce the power consumption of Cloud Server simultaneously; Also user can be issued to should the Energy control command mappings of virtual machine be the Energy control instruction of corresponding client in Cloud Server, and this instruction is sent to client, so that client carries out Energy control according to this instruction to this client, like this, user is when using desktop cloud resource, also can carry out Energy control to client, thus improve Consumer's Experience.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The method schematic diagram of a kind of Energy control that Fig. 1 provides for the embodiment of the present invention;
The method schematic diagram of the another kind of Energy control that Fig. 2 provides for the embodiment of the present invention;
The method schematic diagram of the another kind of Energy control that Fig. 3 provides for the embodiment of the present invention;
The schematic flow sheet of the method for a kind of Energy control that Fig. 4 provides for the embodiment of the present invention;
The schematic flow sheet of the method for the another kind of Energy control that Fig. 5 provides for the embodiment of the present invention;
The structural representation of a kind of Cloud Server that Fig. 6 provides for the embodiment of the present invention;
The structural representation of a kind of client that Fig. 7 provides for the embodiment of the present invention;
The structural representation of the another kind of client that Fig. 8 provides for the embodiment of the present invention;
The structural representation of a kind of Cloud Server that Fig. 9 provides for the embodiment of the present invention;
The structural representation of a kind of client that Figure 10 provides for the embodiment of the present invention;
The structural representation of the another kind of client that Figure 11 provides for the embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
The Cloud Server described in the following embodiment of the present invention can be desktop cloud platform virtualized server, it is the physical computer of simulation multiple stage virtual machine, the corresponding client of each virtual machine, this Cloud Server is responsible for client and provides cloud desktop, user can by the access of virtual machine corresponding in cloud desktop access Cloud Server realization to Internet resources, the operations such as the preservation of application data.
The embodiment of the present invention provides a kind of method of Energy control, and as shown in Figure 1, the executive agent of the method is Cloud Server, and the method comprises:
S101, Cloud Server obtain the first Energy control instruction.
Particularly, Cloud Server can obtain the first Energy control instruction that client sends, and also can obtain the first Energy control instruction that user issues.
S102, Cloud Server are according to this first Energy control instruction determination second source control command.
Particularly, if this first Energy control instruction is the instruction of the power supply controlling client, be then the second source control command of the power supply controlling corresponding virtual machine in this Cloud Server by this first Energy control command mappings; If this first Energy control instruction is the instruction of the power supply controlling corresponding virtual machine in Cloud Server, be then the second source control command of the power supply controlling this client by this first Energy control command mappings.
It should be noted that, the embodiment of the present invention comprises two kinds of implementations, and a kind of mode is the power supply being controlled corresponding virtual machine in Cloud Server by client, concrete execution step S103; Another kind of mode is the power supply being controlled client by Cloud Server, concrete execution step S104.
S103, Cloud Server control the power supply of virtual machine corresponding in this Cloud Server according to this second source control command.
Wherein, above-mentioned first Energy control instruction is the control command of the power supply controlling this client; This second source control command is the control command of the power supply controlling virtual machine corresponding in this Cloud Server.
The present invention includes following two kinds of implementations:
The first Energy control instruction that this client of mode one, cloud server sends.
Particularly, user can issue this first Energy control instruction by the operating system that client is corresponding to client, Cloud Server is after receiving this first Energy control instruction, be second source control command by this first Energy control command mappings, and control the power supply of virtual machine corresponding in this Cloud Server according to this second source control command.
Such as, this first Energy control instruction can for shutdown command (namely closing the power supply of client), and this shutdown command, after receiving the shutdown command that user issues, is sent to Cloud Server, and closes the power supply of client according to this shutdown command by client.Because now this shutdown command is the shutdown command controlling client, Cloud Server can't perform this instruction after the shutdown command receiving this control client, therefore, this Cloud Server needs this shutdown command to be mapped as the shutdown command controlling corresponding virtual machine in this Cloud Server, and closes virtual machine corresponding in this Cloud Server according to the shutdown command of virtual machine corresponding in this Cloud Server.
It should be noted that, the Energy control instruction mentioned in the embodiment of the present invention can be shutdown command, but the embodiment of the present invention is not limited thereto, and can also be log-out instruction or dormancy instruction.
In addition, describe in following examples of the present invention first, second etc. similar saying, the not meaning of restriction order, only for convenience of distinguishing.
Further, Cloud Server is after receiving this first Energy control instruction, determine the first Energy control type that this first Energy control instruction is corresponding, be second source Control Cooling according to preset strategy by this first Energy control Type mapping, and determine the 3rd corresponding Energy control instruction according to this second source Control Cooling, and determine this second source control command according to the 3rd Energy control instruction.
Wherein, the 3rd Energy control instruction is the instruction of the power supply controlling this client, and this preset strategy comprises the corresponding relation of this first Energy control type and this second source Control Cooling.
Particularly, this preset strategy can be the pre-configured strategy of user, such as mapping relations table, this mapping relations table comprises the first Energy control type of this first Energy control instruction and the corresponding relation of second source Control Cooling, as in this mapping relations table, the first Energy control instruction be shutdown command or log-out instruction or dormancy instruction time, all corresponding log-out instruction (i.e. the 3rd Energy control instruction), then Cloud Server determine this first Energy control instruction be shutdown command or log-out instruction or dormancy instruction time, be all log-out instruction by this first power supply command mappings, the embodiment of the present invention is not construed as limiting above-mentioned corresponding relation.
Illustratively, this the first Energy control instruction is shutdown command, 3rd Energy control instruction is log-out instruction, after client receives the shutdown command (i.e. the first Energy control instruction) that user's operating system corresponding by client issues, this shutdown command is sent to Cloud Server, and the power supply of client is closed according to shutdown command, this shutdown command is mapped as log-out instruction (i.e. the 3rd Energy control instruction) by Cloud Server, due to the instruction that this shutdown command and log-out instruction are all the power supplys controlling client, therefore, Cloud Server needs the log-out instruction (i.e. second source control command) this log-out instruction being mapped as the power supply controlling virtual machine corresponding in this Cloud Server, thus nullify corresponding virtual machine according to the log-out instruction of the power supply of virtual machine corresponding in this Cloud Server of this control.
It should be noted that, the Cloud Server of foregoing description is receiving the first Energy control instruction that client sends and this first Energy control command mappings should be understood to for the 3rd Energy control instruction, Cloud Server is after getting the first Energy control instruction, according to the 3rd Energy control instruction that this first Energy control instruction is obtained by preset strategy, that is, after Cloud Server completes mapping, this Cloud Server comprises two instructions (i.e. the first Energy control instruction and the 3rd Energy control instruction after mapping), now, 3rd Energy control command mappings of the power supply of this control client is the control command of the power supply controlling virtual machine corresponding in Cloud Server by Cloud Server.
This first Energy control command mappings also can be the description of the 3rd Energy control instruction with reference to above-mentioned Cloud Server by the mapping described in the following embodiment of the present invention, has follow-uply just repeated no more.
Mode two, after the 4th Energy control command mappings received from this client is the first Energy control instruction by mapped device, this mapped device of cloud server send the first Energy control instruction.
Wherein, the corresponding 3rd Energy control type of this first Energy control instruction is the instruction of the power supply controlling this client; The corresponding 4th Energy control type of 4th Energy control instruction is the control command of the power supply controlling this client.
It should be noted that, first Energy control instruction and the 4th Energy control instruction are all the instructions of the power supply controlling this client, just Energy control type is different, if the first Energy control instruction can be shutdown command, 4th Energy control instruction can be log-out instruction, and the present invention is not construed as limiting Energy control type.
Particularly, mapped device is after getting the 4th Energy control instruction, be the first Energy control instruction (be three Energy control type by the 4th Energy control Type mapping) by the 4th Energy control command mappings according to the pre-configured preset strategy of user, and this first Energy control instruction is sent to Cloud Server, so that this first Energy control command mappings is second source control command by this Cloud Server, wherein, this second source control command is the control command of the power supply controlling corresponding virtual machine in Cloud Server.
As seen from the above, the difference of mode one and mode two is: in mode one, it is the mapping of the Energy control type being completed Energy control instruction by Cloud Server, in mode two,, by client, Energy control instruction is sent to mapped device, completed the mapping of the Energy control type of Energy control instruction by mapped device, its concrete mapping mode can describe with reference to the correspondence in mode one, repeats no more herein.
It should be noted that, Cloud Server, after receiving second source control command, determines the mark of the virtual machine that this second source control command is corresponding, and controls the power supply to the virtual machine that should identify in this Cloud Server according to this second source control command.
Particularly, because Cloud Server may comprise multiple virtual machine, therefore, Cloud Server is after receiving second source control command, determine the mark of corresponding virtual machine according to this second source control command, thus control the power supply of the virtual machine of the mark correspondence of this virtual machine according to this second source control command.
S104, Cloud Server perform respective handling, to control the power supply of this client to this second source control command.
Wherein, this first Energy control instruction is the control command of the power supply controlling virtual machine corresponding in this Cloud Server; This second source control command is the control command of the power supply controlling this client.
Particularly, Cloud Server obtains the first Energy control instruction, and this first Energy control instruction is the instruction of the power supply controlling virtual machine corresponding in this Cloud Server.
In a kind of possible implementation of the present invention, this second source control command is sent to this client by Cloud Server, so that this client controls the power supply of this client according to this second source control command.
Particularly, user can issue the first Energy control instruction by the operating system that virtual machine in Cloud Server is corresponding to Cloud Server, this the first Energy control command mappings is second source control command by Cloud Server, and this second source control command is sent to client, Cloud Server, after this second source control command is sent to client, controls the power supply of corresponding virtual machine in this Cloud Server according to this first Energy control instruction.Client, after receiving this second source control command, controls the power supply of client according to this second source control command.
Illustratively, this the first Energy control instruction and second source control command can be shutdown commands, Cloud Server is after receiving the shutdown command (i.e. the first Energy control instruction) controlling corresponding virtual machine in Cloud Server, this shutdown command is mapped as the shutdown command (i.e. second source control command) controlling client, and the shutdown command of this control client is sent to client, Cloud Server is after being sent to client by the shutdown command of this control client, the power supply of corresponding virtual machine in this Cloud Server is closed according to the shutdown command of corresponding virtual machine in this control Cloud Server.Client, after the shutdown command receiving this control client, closes the power supply of client according to the shutdown command of this control client.
In the another kind of possible implementation of the present invention, Cloud Server determines the 5th Energy control instruction according to this second source control command, and the 5th Energy control instruction is sent to this client, so that this client controls the power supply of this client according to the 5th Energy control instruction.
Wherein, the 5th Energy control instruction is the instruction of the power supply controlling this client.
Particularly, user can issue the first Energy control instruction by the operating system that virtual machine in Cloud Server is corresponding to Cloud Server, this the first Energy control command mappings is second source control command by Cloud Server, and determine the 5th Energy control type that this second source control command is corresponding, be the 6th Energy control type according to preset strategy by the 5th Energy control Type mapping, and determine the 5th corresponding Energy control instruction according to the 6th Energy control type, wherein, this preset strategy comprises the corresponding relation of the 5th Energy control type and the 6th Energy control type.This preset strategy can be mapping relations table, this mapping relations table comprises the corresponding relation of the Energy control type of this second source control command and the Energy control type of the 5th Energy control instruction, as in this mapping relations table, second source control command be shutdown command or log-out instruction or dormancy instruction time, all corresponding log-out instruction (i.e. the 5th Energy control instruction), then client determine this second source control command be shutdown command or log-out instruction or dormancy instruction time, be all log-out instruction by this second source command mappings, the embodiment of the present invention is not construed as limiting above-mentioned corresponding relation.
Illustratively, this second source control command can be shutdown command, 5th Energy control instruction can be log-out instruction, this shutdown command to be mapped as the log-out instruction (i.e. the 5th Energy control instruction) controlling client by Cloud Server according to preset strategy after, 5th Energy control instruction is sent to client, and this client nullifies this client according to this log-out instruction.
It should be noted that, this second source control command also can be sent to mapped device by Cloud Server, so that this mapped device determines the 6th Energy control instruction according to this second source control command, and the 6th Energy control instruction is sent to this client, so that this client controls the power supply of this client according to the 6th Energy control instruction.
Wherein, the corresponding 7th Energy control type of this second source control command is the control command of the power supply controlling client; The corresponding 8th Energy control type of 6th Energy control instruction is the control command of the power supply controlling client.
Particularly, user can issue the first Energy control instruction by the operating system that virtual machine in Cloud Server is corresponding to Cloud Server, this the first Energy control command mappings is second source control command by Cloud Server, and this second source control command is sent to mapped device, Cloud Server, after this second source control command is sent to mapped device, controls the power supply of corresponding virtual machine in this Cloud Server according to this first Energy control instruction.Mapped device is after receiving this second source control command, be the 8th Energy control type corresponding to the 6th Energy control instruction by the 7th corresponding for this second source control command Energy control Type mapping by user configured preset strategy, and the 6th Energy control instruction is sent to client, this client controls the power supply of this client according to the 6th Energy control instruction.
It should be noted that, above-mentioned steps S103 is the power operation that user passes through to client, synchronously realize the Energy control of virtual machine in client and Cloud Server, like this, user can be made when not needing to use desktop cloud resource, virtual machine corresponding in Cloud Server can discharge corresponding resource in time, ensures the utilance of resource, can reduce the power consumption of Cloud Server simultaneously; Above-mentioned steps S104 is the power operation that user passes through to virtual machine corresponding in Cloud Server, synchronously realize the Energy control of virtual machine in client and Cloud Server, like this, user is when using desktop cloud resource, also can carry out Energy control to client, thus improve Consumer's Experience.
The invention provides a kind of method of Energy control, as shown in Figure 2, the executive agent of the method is client, and the method comprises:
S201, client receive the first Energy control instruction that Cloud Server sends.
Wherein, this first Energy control instruction is the control command controlling this client.
S202, client control the power supply of this client according to this first Energy control instruction.
Particularly, the first Energy control instruction that client reception Cloud Server sends comprises following two kinds of implementations:
Mode one, client receive the first Energy control instruction that Cloud Server sends.
Particularly, user can issue second source control command by the operating system that virtual machine in Cloud Server is corresponding to Cloud Server, wherein, this second source control command is the instruction of the power supply controlling corresponding virtual machine in Cloud Server, this second source control command is mapped as the first Energy control instruction by Cloud Server, and this first Energy control instruction is sent to client, so that client controls the power supply of client according to this first Energy control instruction, wherein said first Energy control instruction is the instruction of the power supply controlling client.
Further, the second source Control Cooling of this second source control command can be mapped as the first Energy control type according to preset strategy by Cloud Server, and obtain the 3rd Energy control instruction according to this first Energy control type, wherein, 3rd Energy control instruction is the instruction of the power supply controlling corresponding virtual machine in this Cloud Server, this the first Energy control instruction is the instruction of the power supply controlling client, this preset strategy comprises the corresponding relation of this first Energy control type and this second source Control Cooling, this preset strategy can be mapping relations table, this mapping relations table comprises the corresponding relation of the Energy control type of this first Energy control instruction and the Energy control type of second source control command, as in this mapping relations table, second source control command be shutdown command or log-out instruction or dormancy instruction time, all corresponding log-out instruction (i.e. the first Energy control instruction), then Cloud Server determine this second source control command be shutdown command or log-out instruction or dormancy instruction time, be all log-out instruction by this second source command mappings, be the first Energy control instruction by the 3rd Energy control command mappings, and this first Energy control instruction is sent to client, so that client controls the power supply of client according to this first Energy control instruction, the embodiment of the present invention is not construed as limiting above-mentioned corresponding relation.
Mode two, after the second source control command from this cloud server is mapped as the first Energy control instruction by mapped device, client receive this mapped device send the first Energy control instruction.
Wherein, the corresponding first Energy control type of this first Energy control instruction is the instruction of the power supply controlling this client; The corresponding second source Control Cooling of this second source control command is the instruction of the power supply controlling this client.
It should be noted that, first Energy control instruction and second source control command are all the instructions of the power supply controlling this client, just Energy control type is different, if the first Energy control instruction can be shutdown command, second source control command can be log-out instruction, and the present invention is not construed as limiting Energy control type.
Particularly, user can issue the 3rd Energy control instruction by the operating system that virtual machine in Cloud Server is corresponding to Cloud Server, wherein, 3rd Energy control instruction is the instruction of the power supply controlling corresponding virtual machine in Cloud Server, 3rd Energy control command mappings is second source control command by Cloud Server, this second source control command is the instruction of the power supply controlling client, this second source control command is sent to mapped device by Cloud Server, the second source Control Cooling of this second source control command is mapped as the first Energy control type according to preset strategy by mapped device, and determine corresponding the first Energy control instruction (specifically can with reference to the description of Energy control Type mapping in aforesaid way one) according to this first Energy control type, and this first Energy control instruction is sent to client, so that client controls the power supply of client according to this first Energy control instruction, the embodiment of the present invention is not construed as limiting above-mentioned corresponding relation.
Above-mentioned executive agent is adopted to be the scheme of client, at Cloud Server by should the Energy control command mappings of corresponding virtual machine be the Energy control instruction of corresponding client in Cloud Server, and after the Energy control instruction of corresponding client is sent to client, client carries out Energy control according to the Energy control instruction of this corresponding client, thus synchronously realize the Energy control of virtual machine in client and Cloud Server, like this, user is when using desktop cloud resource, also can carry out Energy control to client, thus improve Consumer's Experience.
The embodiment of the present invention provides a kind of method of Energy control, and as shown in Figure 3, the executive agent of the method is client, and the method comprises:
S301, client obtain the first Energy control instruction.
Wherein, this first Energy control instruction is the instruction of the power supply controlling this client.
S302, client perform respective handling to this first Energy control instruction, to control the power supply of virtual machine corresponding in Cloud Server.
Particularly, client comprises following two kinds of implementations to this first Energy control instruction execution respective handling:
This first Energy control instruction is sent to this Cloud Server by mode one, client, so that this Cloud Server is according to this first Energy control instruction determination second source control command, and control the power supply of virtual machine corresponding in this Cloud Server according to this second source control command.
Wherein, this second source control command is the instruction of the power supply controlling virtual machine corresponding in this Cloud Server.
Particularly, user can issue this first Energy control instruction by the operating system that client is corresponding to client, Cloud Server is after receiving this first Energy control instruction, be second source control command by this first Energy control command mappings, and control the power supply of virtual machine corresponding in this Cloud Server according to this second source control command.
Such as, this first Energy control instruction can for shutdown command (namely closing the power supply of client), and this shutdown command, after receiving the shutdown command that user issues, is sent to Cloud Server, and closes the power supply of client according to this shutdown command by client.Because now this shutdown command is the shutdown command controlling client, Cloud Server can't perform this instruction after the shutdown command receiving this control client, therefore, this Cloud Server needs this shutdown command to be mapped as the shutdown command controlling corresponding virtual machine in this Cloud Server, and closes virtual machine corresponding in this Cloud Server according to the shutdown command of virtual machine corresponding in this Cloud Server.
It should be noted that, the Energy control instruction mentioned in the embodiment of the present invention can be shutdown command, but the embodiment of the present invention is not limited thereto, and can also be log-out instruction or dormancy instruction.
Further, Cloud Server is after receiving this first Energy control instruction, determine the first Energy control type that this first Energy control instruction is corresponding, be second source Control Cooling according to preset strategy by this first Energy control Type mapping, and determine the 5th corresponding Energy control instruction according to this second source Control Cooling, and determine this second source control command according to the 5th Energy control instruction.
Wherein, the 5th Energy control instruction is the instruction of the power supply controlling this client, and this preset strategy comprises the corresponding relation of this first Energy control type and this second source Control Cooling.
Particularly, this preset strategy can be the pre-configured strategy of user, such as mapping relations table, this mapping relations table comprises the first Energy control type of this first Energy control instruction and the corresponding relation of second source Control Cooling, as in this mapping relations table, the first Energy control instruction be shutdown command or log-out instruction or dormancy instruction time, all corresponding log-out instruction (i.e. the 5th Energy control instruction), then Cloud Server determine this first Energy control instruction be shutdown command or log-out instruction or dormancy instruction time, be all log-out instruction by this first power supply command mappings, the embodiment of the present invention is not construed as limiting above-mentioned corresponding relation.
Illustratively, this the first Energy control instruction is shutdown command, 5th Energy control instruction is log-out instruction, after client receives the shutdown command (i.e. the first Energy control instruction) that user's operating system corresponding by client issues, this shutdown command is sent to Cloud Server, and the power supply of client is closed according to this shutdown command, this shutdown command is mapped as log-out instruction (i.e. the 5th Energy control instruction) by Cloud Server, due to the instruction that this shutdown command and log-out instruction are all the power supplys controlling client, therefore, Cloud Server needs the log-out instruction (i.e. second source control command) this log-out instruction being mapped as the power supply controlling virtual machine corresponding in this server, thus nullify corresponding virtual machine according to the log-out instruction of the power supply of virtual machine corresponding in this server of this control.
This first Energy control instruction is sent to mapped device by mode two, client, so that this mapped device determines the 3rd Energy control instruction according to this first Energy control instruction, and the 3rd Energy control instruction is sent to this Cloud Server, so that this Cloud Server determines the 4th Energy control instruction according to the 3rd Energy control instruction, and control the power supply of virtual machine corresponding in this Cloud Server according to the 4th Energy control instruction.
Wherein, this the first Energy control instruction comprises the first Energy control type, 3rd Energy control instruction comprises the 3rd Energy control type, is the Energy control instruction controlling this client, and the 4th Energy control instruction is the instruction of the power supply controlling virtual machine corresponding in this Cloud Server.
It should be noted that, first Energy control instruction and the 3rd Energy control instruction are all the instructions of the power supply controlling this client, just Energy control type is different, if the first Energy control instruction can be shutdown command, 3rd Energy control instruction can be log-out instruction, and the present invention is not construed as limiting Energy control type.
Particularly, client is after getting the 3rd Energy control instruction, 3rd Energy control instruction is sent to mapped device, 3rd Energy control command mappings is the first Energy control instruction (be first Energy control type by the 3rd Energy control Type mapping) according to the pre-configured preset strategy of user by mapped device, and this first Energy control instruction is sent to Cloud Server, so that this first Energy control command mappings is second source control command by this Cloud Server, wherein, this second source control command is the power supply controlling corresponding virtual machine in Cloud Server.
As seen from the above, the difference of mode one and mode two is: in mode one, it is the mapping of the Energy control type being completed Energy control instruction by Cloud Server, in mode two,, by client, Energy control instruction is sent to mapped device, completed the mapping of the Energy control type of Energy control instruction by mapped device, its concrete mapping mode can describe with reference to the correspondence in mode one, repeats no more herein.
It should be noted that, Cloud Server, after receiving second source control command, determines the mark of the virtual machine that this second source control command is corresponding, and controls the power supply to the virtual machine that should identify in this Cloud Server according to this second source control command.
Particularly, because Cloud Server may comprise multiple virtual machine, therefore, Cloud Server is after receiving second source control command, determine the mark of corresponding virtual machine according to this second source control command, thus control the power supply of the virtual machine of the mark correspondence of this virtual machine according to this second source control command.
Above-mentioned executive agent is adopted to be the scheme of client, client by receive to the Energy control instruction of client being sent to Cloud Server, so that this this command mappings is to should the Energy control instruction of corresponding virtual machine in Cloud Server by this Cloud Server, and carries out Energy control according to this instruction to virtual machine corresponding in this Cloud Server; Like this, user is by the power operation to client, synchronously realize the Energy control of virtual machine in client and Cloud Server, user can be made when not needing to use desktop cloud resource, virtual machine corresponding in Cloud Server can discharge corresponding resource in time, ensure the utilance of resource, the power consumption of Cloud Server can be reduced simultaneously.
The embodiment of the present invention provides a kind of method of Energy control, as shown in Figure 4, the method embodiment is described for the power supply by controlling client to the power operation of Cloud Server, and the client in this inventive embodiments can be thin-client, and the method comprises:
S401, Cloud Server obtain the first Energy control instruction.
Wherein, this first Energy control instruction is the instruction of the power supply controlling corresponding virtual machine in Cloud Server.
Particularly, user can issue the first Energy control instruction by the operating system that virtual machine in Cloud Server is corresponding to Cloud Server.
This first Energy control command mappings is second source control command by S402, Cloud Server.
Wherein, this second source control command is the instruction of the power supply controlling client.
This second source control command is mapped as the 3rd Energy control instruction according to preset strategy by S403, Cloud Server.
Wherein, this second source control command comprises second source Control Cooling, and the 3rd Energy control instruction comprises the 3rd Energy control type, and this preset strategy comprises the corresponding relation of this second source Control Cooling and the 3rd Energy control type.This preset strategy can be mapping relations table, this mapping relations table comprises the corresponding relation of the Energy control type of this second source control command and the Energy control type of the 3rd Energy control instruction, as in this mapping relations table, second source control command be shutdown command or log-out instruction or dormancy instruction time, all corresponding log-out instruction (i.e. the 3rd Energy control instruction), then client determine this second source control command be shutdown command or log-out instruction or dormancy instruction time, be all log-out instruction by this second source command mappings, the embodiment of the present invention is not construed as limiting above-mentioned corresponding relation.
It should be noted that, this second source control command and the 3rd Energy control instruction are all the instructions of the power supply controlling client, just Energy control type is different, if second source control command can be shutdown command, 3rd Energy control instruction can be log-out instruction, and the present invention is not construed as limiting Energy control type.
3rd Energy control instruction is sent to client by S404, Cloud Server.
S405, Cloud Server control the power supply of corresponding virtual machine in this Cloud Server according to this first Energy control instruction.
Particularly, this first Energy control instruction comprises the mark of corresponding virtual machine in this Cloud Server, and this Cloud Server controls the power supply of the virtual machine of the mark correspondence of this virtual machine according to the first Energy control instruction.
S406, client control the power supply of this client according to the 3rd Energy control instruction.
It should be noted that, above-mentioned steps S404 to S406 can also be the implementation that following steps S4040 to S4080 describes:
This second source control command is sent to mapped device by S4030, Cloud Server.
S4040, Cloud Server control the power supply of corresponding virtual machine in this Cloud Server according to this first Energy control instruction.
Particularly, this first Energy control instruction comprises the mark of corresponding virtual machine in this Cloud Server, and this Cloud Server controls the power supply of the virtual machine of the mark correspondence of this virtual machine according to this first Energy control instruction.
This second source control command is mapped as the 3rd Energy control instruction by S4050, mapped device.
Wherein, this second source control command comprises second source Control Cooling, and the 3rd Energy control instruction comprises the 3rd Energy control type, and this preset strategy comprises the corresponding relation of this second source Control Cooling and the 3rd Energy control type.This preset strategy can be mapping relations table, this mapping relations table comprises the corresponding relation of the Energy control type of this second source control command and the Energy control type of the 3rd Energy control instruction, as in this mapping relations table, second source control command be shutdown command or log-out instruction or dormancy instruction time, all corresponding log-out instruction (i.e. the 3rd Energy control instruction), then client determine this second source control command be shutdown command or log-out instruction or dormancy instruction time, be all log-out instruction by this second source command mappings, the embodiment of the present invention is not construed as limiting above-mentioned corresponding relation.
It should be noted that, this second source control command and the 3rd Energy control instruction are all the instructions of the power supply controlling client, just Energy control type is different, if second source control command can be shutdown command, 3rd Energy control instruction can be log-out instruction, and the present invention is not construed as limiting Energy control type.
3rd Energy control instruction is sent to client by S4060, mapped device.
S4070, client control the power supply of client according to the 3rd Energy control instruction.
Adopt such scheme, at Cloud Server by should after the Energy control command mappings of corresponding virtual machine is the Energy control instruction of corresponding client in Cloud Server and after the Energy control instruction of corresponding client is sent to client, client carries out Energy control according to the Energy control instruction of this corresponding client, thus synchronously realize the Energy control of virtual machine in client and Cloud Server, like this, user is when using desktop cloud resource, also can carry out Energy control to client, thus improve Consumer's Experience.
It should be noted that, for said method embodiment, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
The embodiment of the present invention provides a kind of method of Energy control, as shown in Figure 5, the method embodiment is described for the power supply by controlling virtual machine corresponding in Cloud Server to the power operation of client, client in this inventive embodiments can be thin-client, the present invention does not limit this, and the method comprises:
S501, client obtain the first Energy control instruction.
Wherein, this first Energy control instruction is the instruction of the power supply controlling this client.
Particularly, user issues the first Energy control instruction by the operating system that client is corresponding to client.
Such as, user can close the virtual machine of current accessed, and also can close all virtual machines with this client's side link, the present invention is not construed as limiting this.
Such as, when user closes the virtual machine of current accessed, then client can according to the mark of the virtual machine of this first Energy control instruction determination current accessed; When user closes all virtual machines with this client's side link, then client can determine the mark with all virtual machines of this client's side link according to this first Energy control instruction.
This first Energy control instruction is sent to Cloud Server by S502, client.
S503, client control the power supply of this client according to this first Energy control instruction.
This first Energy control command mappings is second source control command by S504, Cloud Server.
Wherein, this second source control command is the instruction of the power supply controlling corresponding virtual machine in this Cloud Server.
This second source control command is mapped as the 3rd Energy control instruction according to preset strategy by S505, Cloud Server.
Particularly, client determines the first Energy control type that this second source control command is corresponding, and be second source Control Cooling according to preset strategy by this first Energy control Type mapping, and obtain the 3rd corresponding Energy control instruction according to this second source Control Cooling.Wherein, this preset strategy comprises the corresponding relation of this first Energy control type and this second source Control Cooling, this preset strategy can be mapping relations table, this mapping relations table represents the corresponding relation of the Energy control type of this second source control command and the Energy control type of the 3rd Energy control instruction, as in this mapping relations table, second source control command be shutdown command or log-out instruction or dormancy instruction time, all corresponding log-out instruction (i.e. the 3rd Energy control instruction), then client determine this second source control command be shutdown command or log-out instruction or dormancy instruction time, be all log-out instruction by this second source command mappings, the embodiment of the present invention is not construed as limiting above-mentioned corresponding relation.
Such as, this the first Energy control instruction is shutdown command, this second source control command is log-out instruction, the shutdown command (i.e. second source control command) received is mapped as log-out instruction (i.e. the 3rd Energy control instruction) by client, and this log-out instruction is sent to Cloud Server, after this log-out instruction is sent to Cloud Server, this client closes client according to this shutdown command.This log-out instruction is mapped as the log-out instruction controlling corresponding virtual machine in Cloud Server by this Cloud Server, and nullifies corresponding virtual machine according to the log-out instruction of corresponding virtual machine in this control Cloud Server.Here just illustrate, be not construed as limiting.
S506, Cloud Server control the power supply of virtual machine corresponding in this Cloud Server according to the 3rd Energy control instruction.
Particularly, the 3rd Energy control instruction comprises the mark of virtual machine, and this Cloud Server controls the power supply of the virtual machine of the mark correspondence of this virtual machine according to the 3rd Energy control instruction.
It should be noted that, above-mentioned steps S502 to S506 can also be the implementation that following steps S5020 to S5080 describes:
First Energy control instruction is sent to mapped device by S5020, client.
S5030, client control the power supply of client according to this first Energy control instruction.
This first Energy control instruction is sent to mapped device by S5040, client.
This first Energy control command mappings is second source control command according to preset strategy by S5050, mapped device.
This second source control command is sent to Cloud Server by S5060, mapped device.
This second source control command is mapped as the 3rd Energy control instruction by S5070, Cloud Server.
S5080, Cloud Server control the power supply of virtual machine corresponding in this Cloud Server according to the 3rd Energy control instruction.
Particularly, the 3rd Energy control instruction comprises the mark of virtual machine, and this Cloud Server controls the power supply of the virtual machine of the mark correspondence of this virtual machine according to the 3rd Energy control instruction.
Adopt such scheme, client by receive to the Energy control instruction of client being sent to Cloud Server, so that this this command mappings is to should the Energy control instruction of corresponding virtual machine in Cloud Server by this Cloud Server, and carries out Energy control according to this instruction to virtual machine corresponding in this Cloud Server; Like this, user is by the power operation to client, synchronously realize the Energy control of virtual machine in client and Cloud Server, user can be made when not needing to use desktop cloud resource, virtual machine corresponding in Cloud Server can discharge corresponding resource in time, ensure the utilance of resource, the power consumption of Cloud Server can be reduced simultaneously.
It should be noted that, for said method embodiment, in order to simple description, therefore it is all expressed as a series of combination of actions, but those skilled in the art should know, the present invention is not by the restriction of described sequence of movement.Secondly, those skilled in the art also should know, the embodiment described in specification all belongs to preferred embodiment, and involved action and module might not be that the present invention is necessary.
The embodiment of the present invention provides a kind of Cloud Server 60, and as shown in Figure 6, this Cloud Server 60 comprises:
Acquiring unit 61, for obtaining the first Energy control instruction.
Particularly, Cloud Server can obtain the first Energy control instruction that client sends, and also can obtain the first Energy control instruction that user issues.
Processing unit 62, for the first Energy control instruction determination second source control command obtained according to this acquiring unit 61.
Particularly, if this first Energy control instruction is the instruction of the power supply controlling client, be then the second source control command of the power supply controlling corresponding virtual machine in this Cloud Server by this first Energy control command mappings; If this first Energy control instruction is the instruction of the power supply controlling corresponding virtual machine in Cloud Server, be then the second source control command of the power supply controlling this client by this first Energy control command mappings.
This processing unit 62 also for, to control in this Cloud Server the power supply of corresponding virtual machine according to this second source control command, wherein, this first Energy control instruction is the control command of the power supply controlling this client; This second source control command is the control command of the power supply controlling virtual machine corresponding in this Cloud Server.
Or also for performing respective handling to this second source control command, to control the power supply of this client, wherein, this first Energy control instruction is the control command of the power supply controlling virtual machine corresponding in this Cloud Server; This second source control command is the control command of the power supply controlling this client.
In a kind of possible implementation of the present invention, this processing unit 62, for controlling the power supply of virtual machine corresponding in this Cloud Server according to this second source control command.
Wherein, this first Energy control instruction is the control command of the power supply controlling this client; This second source control command is the control command of the power supply controlling virtual machine corresponding in this Cloud Server.
Alternatively, this acquiring unit 61 also for, receive this client send this first Energy control instruction.
Particularly, user can issue this first Energy control instruction by the operating system that client is corresponding to client, Cloud Server is after receiving this first Energy control instruction, be second source control command by this first Energy control command mappings, and control the power supply of virtual machine corresponding in this Cloud Server according to this second source control command.
Such as, this first Energy control instruction can for shutdown command (namely closing the power supply of client), and this shutdown command, after receiving the shutdown command that user issues, is sent to Cloud Server, and closes the power supply of client according to this shutdown command by client.Because now this shutdown command is the shutdown command controlling client, Cloud Server can't perform this instruction after the shutdown command receiving this control client, therefore, this Cloud Server needs this shutdown command to be mapped as the shutdown command controlling corresponding virtual machine in this Cloud Server, and closes virtual machine corresponding in this Cloud Server according to the shutdown command of virtual machine corresponding in this Cloud Server.
Further, this processing unit 62 specifically for, determine the first Energy control type that this first Energy control instruction is corresponding, be second source Control Cooling according to preset strategy by this first Energy control Type mapping, and determine the 3rd corresponding Energy control instruction according to this second source Control Cooling, and determine this second source control command according to the 3rd Energy control instruction.
Wherein, this preset strategy comprises the corresponding relation of this first Energy control type and this second source Control Cooling; 3rd Energy control instruction is the instruction of the power supply controlling this client.
Wherein, the 3rd Energy control instruction is the instruction of the power supply controlling this client, and this preset strategy comprises the corresponding relation of this first Energy control type and this second source Control Cooling.
Particularly, this preset strategy can be the pre-configured strategy of user, such as mapping relations table, this mapping relations table comprises the first Energy control type of this first Energy control instruction and the corresponding relation of second source Control Cooling, as in this mapping relations table, the first Energy control instruction be shutdown command or log-out instruction or dormancy instruction time, all corresponding log-out instruction (i.e. the 3rd Energy control instruction), then Cloud Server determine this first Energy control instruction be shutdown command or log-out instruction or dormancy instruction time, be all log-out instruction by this first power supply command mappings, the embodiment of the present invention is not construed as limiting above-mentioned corresponding relation.
Illustratively, this the first Energy control instruction is shutdown command, 3rd Energy control instruction is log-out instruction, after client receives the shutdown command (i.e. the first Energy control instruction) that user's operating system corresponding by client issues, this shutdown command is sent to Cloud Server, and the power supply of client is closed according to shutdown command, this shutdown command is mapped as log-out instruction (i.e. the 3rd Energy control instruction) by Cloud Server, due to the instruction that this shutdown command and log-out instruction are all the power supplys controlling client, therefore, Cloud Server needs the log-out instruction (i.e. second source control command) this log-out instruction being mapped as the power supply controlling virtual machine corresponding in this Cloud Server, thus nullify corresponding virtual machine according to the log-out instruction of the power supply of virtual machine corresponding in this Cloud Server of this control.
Alternatively, this acquiring unit 61 specifically for, after the 4th Energy control command mappings received from this client is the first Energy control instruction by mapped device, receive this mapped device send the first Energy control instruction.
Wherein, the corresponding 3rd Energy control type of this first Energy control instruction is the instruction of the power supply controlling this client; The corresponding 4th Energy control type of 4th Energy control instruction is the control command of the power supply controlling this client;
This processing unit 62 specifically for, to control in this Cloud Server the power supply of corresponding virtual machine according to this second source control command.
Particularly, mapped device is after getting the 4th Energy control instruction, be the first Energy control instruction (be three Energy control type by the 4th Energy control Type mapping) by the 4th Energy control command mappings according to the pre-configured preset strategy of user, and this first Energy control instruction is sent to Cloud Server, so that this first Energy control command mappings is second source control command by this Cloud Server, wherein, this second source control command is the control command of the power supply controlling corresponding virtual machine in Cloud Server.
In the another kind of possible implementation of the present invention, this processing unit 62 for, respective handling is performed, to control the power supply of this client to this second source control command.
Alternatively, this acquiring unit 61 specifically for, obtain the first Energy control instruction.
Wherein, this first Energy control instruction is the instruction of the power supply controlling virtual machine corresponding in this Cloud Server.
Alternatively, this processing unit 62, specifically for this second source control command is sent to this client, so that this client controls the power supply of this client according to this second source control command.
Particularly, user can issue the first Energy control instruction by the operating system that virtual machine in Cloud Server is corresponding to Cloud Server, this the first Energy control command mappings is second source control command by Cloud Server, and this second source control command is sent to client, Cloud Server, after this second source control command is sent to client, controls the power supply of corresponding virtual machine in this Cloud Server according to this first Energy control instruction.Client, after receiving this second source control command, controls the power supply of client according to this second source control command.
Illustratively, this the first Energy control instruction and second source control command can be shutdown commands, Cloud Server is after receiving the shutdown command (i.e. the first Energy control instruction) controlling corresponding virtual machine in Cloud Server, this shutdown command is mapped as the shutdown command (i.e. second source control command) controlling client, and the shutdown command of this control client is sent to client, Cloud Server is after being sent to client by the shutdown command of this control client, the power supply of corresponding virtual machine in this Cloud Server is closed according to the shutdown command of corresponding virtual machine in this control Cloud Server.Client, after the shutdown command receiving this control client, closes the power supply of client according to the shutdown command of this control client.
Alternatively, this processing unit 62, specifically for determining the 5th Energy control instruction according to this second source control command, and the 5th Energy control instruction is sent to this client, so that this client controls the power supply of this client according to the 5th Energy control instruction.
Wherein, the 5th Energy control instruction is the instruction of the power supply controlling this client.
Further, this processing unit 62 specifically for, determine the 5th Energy control type that this second source control command is corresponding, be the 6th Energy control type according to preset strategy by the 5th Energy control Type mapping, and determine the 5th corresponding Energy control instruction according to the 6th Energy control type;
Wherein, this preset strategy comprises the corresponding relation of the 5th Energy control type and the 6th Energy control type.
Alternatively, this processing unit 62 also for, this second source control command is sent to mapped device, so that this mapped device determines the 6th Energy control instruction according to this second source control command, and the 6th Energy control instruction is sent to this client, so that this client controls the power supply of this client according to the 6th Energy control instruction;
Wherein, the corresponding 7th Energy control type of this second source control command is the control command of the power supply controlling client; The corresponding 8th Energy control type of 6th Energy control instruction is the control command of the power supply controlling client.
Particularly, user can issue the first Energy control instruction by the operating system that virtual machine in Cloud Server is corresponding to Cloud Server, this the first Energy control command mappings is second source control command by Cloud Server, and this second source control command is sent to mapped device, Cloud Server, after this second source control command is sent to mapped device, controls the power supply of corresponding virtual machine in this Cloud Server according to this first Energy control instruction.Mapped device is after receiving this second source control command, be the 8th Energy control type corresponding to the 6th Energy control instruction by the 7th corresponding for this second source control command Energy control Type mapping by user configured preset strategy, and the 6th Energy control instruction is sent to client, this client controls the power supply of this client according to the 6th Energy control instruction.
By adopting above-mentioned Cloud Server, Cloud Server can by receive from client to should the Energy control command mappings of client be to should the Energy control instruction of virtual machine in Cloud Server, and according to this instruction, Energy control is carried out to virtual machine corresponding in this Cloud Server; Like this, user can be made when not needing to use desktop cloud resource, and virtual machine corresponding in Cloud Server can discharge corresponding resource in time, ensures the utilance of resource, can reduce the power consumption of Cloud Server simultaneously; Also user can be issued to should the Energy control command mappings of virtual machine be the Energy control instruction of corresponding client in Cloud Server, and this instruction is sent to client, so that client carries out Energy control according to this instruction to this client, like this, user is when using desktop cloud resource, also can carry out Energy control to client, thus improve Consumer's Experience.
The embodiment of the present invention provides a kind of client 70, and as shown in Figure 7, this client 70 comprises:
Acquiring unit 71, for receiving the first Energy control instruction that Cloud Server sends.
Wherein, this first Energy control instruction is the control command controlling this client.
Processing unit 72, the first Energy control instruction for obtaining according to this acquiring unit 71 controls the power supply of this client.
Alternatively, this acquiring unit 71 specifically for, receive Cloud Server send the first Energy control instruction;
Particularly, user can issue second source control command by the operating system that virtual machine in Cloud Server is corresponding to Cloud Server, wherein, this second source control command is the instruction of the power supply controlling corresponding virtual machine in Cloud Server, this second source control command is mapped as the first Energy control instruction by Cloud Server, and this first Energy control instruction is sent to client, so that client controls the power supply of client according to this first Energy control instruction, wherein said first Energy control instruction is the instruction of the power supply controlling client.
Further, the second source Control Cooling of this second source control command can be mapped as the first Energy control type according to preset strategy by Cloud Server, and obtain the 3rd Energy control instruction according to this first Energy control type, wherein, 3rd Energy control instruction is the instruction of the power supply controlling corresponding virtual machine in this Cloud Server, this the first Energy control instruction is the instruction of the power supply controlling client, this preset strategy comprises the corresponding relation of this first Energy control type and this second source Control Cooling, this preset strategy can be mapping relations table, this mapping relations table comprises the corresponding relation of the Energy control type of this first Energy control instruction and the Energy control type of second source control command, as in this mapping relations table, second source control command be shutdown command or log-out instruction or dormancy instruction time, all corresponding log-out instruction (i.e. the first Energy control instruction), then Cloud Server determine this second source control command be shutdown command or log-out instruction or dormancy instruction time, be all log-out instruction by this second source command mappings, be the first Energy control instruction by the 3rd Energy control command mappings, and this first Energy control instruction is sent to client, so that client controls the power supply of client according to this first Energy control instruction, the embodiment of the present invention is not construed as limiting above-mentioned corresponding relation.
Alternatively, this acquiring unit 71 specifically for, after the second source control command from this cloud server is mapped as the first Energy control instruction by mapped device, receive this mapped device send the first Energy control instruction.
Wherein, the corresponding first Energy control type of this second source control command is the instruction of the power supply controlling this client; The corresponding first Energy control type of this first Energy control instruction is the instruction of the power supply controlling this client.
Particularly, user can issue the 3rd Energy control instruction by the operating system that virtual machine in Cloud Server is corresponding to Cloud Server, wherein, 3rd Energy control instruction is the instruction of the power supply controlling corresponding virtual machine in Cloud Server, 3rd Energy control command mappings is second source control command by Cloud Server, this second source control command is the instruction of the power supply controlling client, this second source control command is sent to mapped device by Cloud Server, the second source Control Cooling of this second source control command is mapped as the first Energy control type according to preset strategy by mapped device, and determine the first corresponding Energy control instruction according to this first Energy control type, and this first Energy control instruction is sent to client, so that client controls the power supply of client according to this first Energy control instruction, the embodiment of the present invention is not construed as limiting above-mentioned corresponding relation.
Adopt above-mentioned client, at Cloud Server by should after the Energy control command mappings of corresponding virtual machine is the Energy control instruction of corresponding client in Cloud Server and after the Energy control instruction of corresponding client is sent to client, client carries out Energy control according to the Energy control instruction of this corresponding client, thus synchronously realize the Energy control of virtual machine in client and Cloud Server, like this, user is when using desktop cloud resource, also can carry out Energy control to client, thus improve Consumer's Experience.
The embodiment of the present invention provides a kind of client 80, as shown in Figure 8, comprising:
Acquiring unit 81, for obtaining the first Energy control instruction;
Processing unit 82, performs respective handling for the first Energy control instruction obtained this acquiring unit 81, to control the power supply of virtual machine corresponding in Cloud Server.
Wherein, this first Energy control instruction is the control command controlling this client.
Alternatively, this processing unit 82, for this first Energy control instruction is sent to this Cloud Server, so that this Cloud Server is according to this first Energy control instruction determination second source control command, and control the power supply of virtual machine corresponding in this Cloud Server according to this second source control command.
Wherein, this second source control command is the instruction of the power supply controlling virtual machine corresponding in this Cloud Server.
Particularly, user can issue this first Energy control instruction by the operating system that client is corresponding to client, Cloud Server is after receiving this first Energy control instruction, be second source control command by this first Energy control command mappings, and control the power supply of virtual machine corresponding in this Cloud Server according to this second source control command.
Such as, this first Energy control instruction can for shutdown command (namely closing the power supply of client), and this shutdown command, after receiving the shutdown command that user issues, is sent to Cloud Server, and closes the power supply of client according to this shutdown command by client.Because now this shutdown command is the shutdown command of the power supply controlling client, Cloud Server can't perform this instruction after the shutdown command receiving this control client, therefore, this Cloud Server needs the shutdown command this shutdown command being mapped as the power supply controlling corresponding virtual machine in this Cloud Server, and closes virtual machine corresponding in this Cloud Server according to the shutdown command of the power supply of virtual machine corresponding in this Cloud Server.
Alternatively, this processing unit 82 is specifically for being sent to mapped device by this first Energy control instruction, so that this mapped device determines the 3rd Energy control instruction according to this first Energy control instruction, and the 3rd Energy control instruction is sent to this Cloud Server, so that this Cloud Server determines the 4th Energy control instruction according to the 3rd Energy control instruction, and control the power supply of virtual machine corresponding in this Cloud Server according to the 4th Energy control instruction.
Wherein, this the first Energy control instruction comprises the first Energy control type, 3rd Energy control instruction comprises the 3rd Energy control type, is the Energy control instruction controlling this client, and described 4th Energy control instruction is the instruction of the power supply controlling virtual machine corresponding in described Cloud Server.
Particularly, client is after getting the 3rd Energy control instruction, 3rd Energy control instruction is sent to mapped device, 3rd Energy control command mappings is the first Energy control instruction (be first Energy control type by the 3rd Energy control Type mapping) according to the pre-configured preset strategy of user by mapped device, and this first Energy control instruction is sent to Cloud Server, so that this first Energy control command mappings is second source control command by this Cloud Server, wherein, this second source control command is the power supply controlling corresponding virtual machine in Cloud Server.
Adopt above-mentioned client, client by receive to the Energy control instruction of client being sent to Cloud Server, so that this command mappings is to should the Energy control instruction of corresponding virtual machine in Cloud Server by this Cloud Server, and carries out Energy control according to this instruction to virtual machine corresponding in this Cloud Server; Like this, user is by the power operation to client, synchronously realize the Energy control of virtual machine in client and Cloud Server, user can be made when not needing to use desktop cloud resource, virtual machine corresponding in Cloud Server can discharge corresponding resource in time, ensure the utilance of resource, the power consumption of Cloud Server can be reduced simultaneously.
The embodiment of the present invention provides a kind of Cloud Server 90, and as shown in Figure 9, this Cloud Server 90 comprises:
Processor (processor) 91, communication interface (Communications Interface) 92, memory (memory) 93 and communication bus 94; Wherein, described processor 91, described communication interface 92 complete mutual communicating with described memory 93 by described communication bus 94.
Processor 91 may be a central processor CPU, or specific integrated circuit ASIC(Application Specific Integrated Circuit), or be configured to the one or more integrated circuits implementing the embodiment of the present invention.
Memory 93 is for depositing program code, and described program code comprises computer-managed instruction.Memory 93 may comprise high-speed RAM memory, still may comprise nonvolatile memory (non-volatile memory), such as at least one magnetic disc store.
Described communication interface 92, for realizing the connection communication between these devices.
Described processor 91 executive program code, for obtaining the first Energy control instruction, according to this first Energy control instruction determination second source control command;
Control the power supply of virtual machine corresponding in this Cloud Server according to this second source control command, wherein, this first Energy control instruction is the control command of the power supply controlling this client; This second source control command is the control command of the power supply controlling virtual machine corresponding in this Cloud Server; Or perform respective handling to this second source control command, to control the power supply of this client, wherein, this first Energy control instruction is the control command of the power supply controlling virtual machine corresponding in this Cloud Server; This second source control command is the control command of the power supply controlling this client.
Alternatively, this processor 91 specifically for, receive this client send this first Energy control instruction; Wherein, this first Energy control instruction is the instruction of the power supply controlling this client.
This processor 91 specifically for, to control in this Cloud Server the power supply of corresponding virtual machine according to this second source control command.
Alternatively, this processor 91 specifically for, be second source Control Cooling according to preset strategy by this first Energy control Type mapping, determine the 3rd corresponding Energy control instruction according to this second source Control Cooling, and determine this second source control command according to the 3rd Energy control instruction.
Wherein, this preset strategy comprises the corresponding relation of this first Energy control type and this second source Control Cooling, and the 3rd Energy control instruction is the instruction of the power supply controlling this client.
Alternatively, this processor 91 specifically for, after the 4th Energy control command mappings received from this client is the first Energy control instruction by mapped device, receive this mapped device send the first Energy control instruction.
Wherein, the corresponding 3rd Energy control type of this first Energy control instruction is the instruction of the power supply controlling this client; The corresponding 4th Energy control type of 4th Energy control instruction is the control command of the power supply controlling this client;
This processor 91 specifically for, to control in this Cloud Server the power supply of corresponding virtual machine according to this second source control command.
Alternatively, this processor 91 also for, obtain the first Energy control instruction.
Wherein, this first Energy control instruction is the instruction of the power supply controlling virtual machine corresponding in this Cloud Server.
This processor 91 specifically for, to this second source control command perform respective handling, to control the power supply of this client.
Alternatively, this processor 91 specifically for, this second source control command is sent to this client, so that this client controls the power supply of this client according to this second source control command; Or,
Specifically for determining the 5th Energy control instruction according to this second source control command, and the 5th Energy control instruction is sent to this client, so that this client controls the power supply of this client according to the 5th Energy control instruction.
Wherein, the 5th Energy control instruction is the instruction of the power supply controlling this client.
Alternatively, this processor 91 specifically for, determining the 5th Energy control type that this second source control command is corresponding, is the 6th Energy control type according to preset strategy by the 5th Energy control Type mapping, and determines the 5th corresponding Energy control instruction according to the 6th Energy control type.
Wherein, this preset strategy comprises the corresponding relation of the 5th Energy control type and the 6th Energy control type.
Alternatively, this processor 91 specifically for, this second source control command is sent to mapped device, so that this mapped device determines the 6th Energy control instruction according to this second source control command, and the 6th Energy control instruction is sent to this client, so that this client controls the power supply of this client according to the 6th Energy control instruction;
Wherein, the corresponding 7th Energy control type of this second source control command is the control command of the power supply controlling client; The corresponding 8th Energy control type of 6th Energy control instruction is the control command of the power supply controlling client.
The embodiment of the present invention provides a kind of client 100, and as shown in Figure 10, this client 100 comprises:
Processor (processor) 101, communication interface (Communications Interface) 102, memory (memory) 103 and communication bus 104; Wherein, described processor 101, described communication interface 102 complete mutual communicating with described memory 103 by described communication bus 104.
Processor 101 may be a central processor CPU, or specific integrated circuit ASIC(Application Specific Integrated Circuit), or be configured to the one or more integrated circuits implementing the embodiment of the present invention.
Memory 103 is for depositing program code, and described program code comprises computer-managed instruction.Memory 103 may comprise high-speed RAM memory, still may comprise nonvolatile memory (non-volatile memory), such as at least one magnetic disc store.
Described communication interface 102, for realizing the connection communication between these devices.
Described processor 101 executive program code, for receiving the first Energy control instruction that Cloud Server sends, controls the power supply of described client according to described first Energy control instruction.
Wherein, described first Energy control instruction is the control command controlling described client.
Alternatively, this processor 101 specifically for, receive Cloud Server send the first Energy control instruction; Or,
Specifically for after the second source control command from described cloud server is mapped as the first Energy control instruction by mapped device, receive the first Energy control instruction that described mapped device sends, wherein, the corresponding first Energy control type of described first Energy control instruction is the instruction of the power supply controlling described client; The corresponding second source Control Cooling of described second source control command is the instruction of the power supply controlling described client.
The embodiment of the present invention provides a kind of client 110, and as shown in figure 11, this client 110 comprises:
Processor (processor) 111, communication interface (Communications Interface) 112, memory (memory) 113 and communication bus 114; Wherein, described processor 111, described communication interface 112 complete mutual communicating with described memory 113 by described communication bus 114.
Processor 111 may be a central processor CPU, or specific integrated circuit ASIC(Application Specific Integrated Circuit), or be configured to the one or more integrated circuits implementing the embodiment of the present invention.
Memory 113 is for depositing program code, and described program code comprises computer-managed instruction.Memory 113 may comprise high-speed RAM memory, still may comprise nonvolatile memory (non-volatile memory), such as at least one magnetic disc store.
Described communication interface 112, for realizing the connection communication between these devices.
Described processor 111 executive program code, for obtaining the first Energy control instruction, and performs respective handling to this first Energy control instruction, to control the power supply of virtual machine corresponding in Cloud Server.
Wherein, this first Energy control instruction is the control command controlling this client.
Alternatively, this processor 111 specifically for, this the first Energy control instruction is sent to this Cloud Server, so that this Cloud Server is according to this first Energy control instruction determination second source control command, and the power supply of virtual machine corresponding in this Cloud Server is controlled according to this second source control command, wherein, this second source control command is the instruction of the power supply controlling virtual machine corresponding in this Cloud Server; Or,
Specifically for this first Energy control instruction is sent to mapped device, so that this mapped device determines the 3rd Energy control instruction according to this first Energy control instruction, and the 3rd Energy control instruction is sent to this Cloud Server, so that this Cloud Server determines the 4th Energy control instruction according to the 3rd Energy control instruction, and the power supply of virtual machine corresponding in this Cloud Server is controlled according to the 4th Energy control instruction, wherein, this the first Energy control instruction comprises the first Energy control type, 3rd Energy control instruction comprises the 3rd Energy control type, it is the Energy control instruction controlling this client, the instruction of the power supply of virtual machine corresponding in this Cloud Server is controlled during the 4th Energy control instruction.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection range of claim.

Claims (24)

1. a method for Energy control, is characterized in that, comprising:
Cloud Server obtains the first Energy control instruction;
According to described first Energy control instruction determination second source control command;
Control the power supply of virtual machine corresponding in described Cloud Server according to described second source control command, wherein, described first Energy control instruction is the control command of the power supply controlling described client; Described second source control command is the control command of the power supply controlling virtual machine corresponding in described Cloud Server; Or perform respective handling to described second source control command, to control the power supply of described client, wherein, described first Energy control instruction is the control command of the power supply controlling virtual machine corresponding in described Cloud Server; Described second source control command is the control command of the power supply controlling described client.
2. method according to claim 1, is characterized in that, described Cloud Server obtains the first Energy control instruction and comprises:
Receive the described first Energy control instruction that described client sends; Wherein, described first Energy control instruction is the instruction of the power supply controlling described client;
The described power supply controlling virtual machine corresponding in described Cloud Server according to described second source control command, or, respective handling is performed to described second source control command, to control the power supply of described client, comprising:
The power supply of virtual machine corresponding in described Cloud Server is controlled according to described second source control command.
3. method according to claim 2, is characterized in that, describedly comprises according to described first Energy control instruction determination second source control command:
Determine the first Energy control type that described first Energy control instruction is corresponding;
Be second source Control Cooling according to preset strategy by described first Energy control Type mapping; Wherein, described preset strategy comprises the corresponding relation of described first Energy control type and described second source Control Cooling;
The 3rd corresponding Energy control instruction is determined according to described second source Control Cooling; Wherein, described 3rd Energy control instruction is the instruction of the power supply controlling described client;
Described second source control command is determined according to described 3rd Energy control instruction.
4. method according to claim 1, is characterized in that, described Cloud Server obtains the first Energy control instruction and comprises:
After the 4th Energy control command mappings received from described client is the first Energy control instruction by mapped device, receive the first Energy control instruction that described mapped device sends, wherein, the corresponding 3rd Energy control type of described first Energy control instruction is the instruction of the power supply controlling described client; The corresponding 4th Energy control type of described 4th Energy control instruction is the control command of the power supply controlling described client;
The described power supply controlling virtual machine corresponding in described Cloud Server according to described second source control command, or, respective handling is performed to described second source control command, to control the power supply of described client, comprising:
The power supply of virtual machine corresponding in described Cloud Server is controlled according to described second source control command.
5. method according to claim 1, is characterized in that, described Cloud Server obtains the first Energy control instruction and comprises:
Obtain the first Energy control instruction, wherein, described first Energy control instruction is the instruction of the power supply controlling virtual machine corresponding in described Cloud Server;
The described power supply controlling virtual machine corresponding in described Cloud Server according to described second source control command, or, respective handling is performed to described second source control command, to control the power supply of described client, comprising:
Respective handling is performed, to control the power supply of described client to described second source control command.
6. method according to claim 5, is characterized in that, described to described second source control command execution respective handling, comprises with the power supply controlling described client:
Described second source control command is sent to described client, so that described client controls the power supply of described client according to described second source control command; Or,
The 5th Energy control instruction is determined according to described second source control command, and described 5th Energy control instruction is sent to described client, so that described client controls the power supply of described client according to described 5th Energy control instruction, wherein, described 5th Energy control instruction is the instruction of the power supply controlling described client.
7. method according to claim 6, is characterized in that, describedly determines that the 5th Energy control instruction comprises according to described second source control command:
Determine the 5th Energy control type that described second source control command is corresponding;
Be the 6th Energy control type according to preset strategy by described 5th Energy control Type mapping; Wherein, described preset strategy comprises the corresponding relation of described 5th Energy control type and described 6th Energy control type;
The 5th corresponding Energy control instruction is determined according to described 6th Energy control type.
8. method according to claim 5, is characterized in that, described to described second source control command execution respective handling, comprises with the power supply controlling described client:
Described second source control command is sent to mapped device, so that described mapped device determines the 6th Energy control instruction according to described second source control command, and described 6th Energy control instruction is sent to described client, so that described client controls the power supply of described client according to described 6th Energy control instruction;
Wherein, the corresponding 7th Energy control type of described second source control command is the control command of the power supply controlling client; The corresponding 8th Energy control type of described 6th Energy control instruction is the control command of the power supply controlling client.
9. a method for Energy control, is characterized in that, comprising:
Client receives the first Energy control instruction that Cloud Server sends, and wherein, described first Energy control instruction is the control command controlling described client;
The power supply of described client is controlled according to described first Energy control instruction.
10. method according to claim 9, is characterized in that, the first Energy control instruction that described client receives Cloud Server transmission comprises:
Receive the first Energy control instruction that Cloud Server sends; Or,
After the second source control command from described cloud server is mapped as the first Energy control instruction by mapped device, receive the first Energy control instruction that described mapped device sends, wherein, the corresponding first Energy control type of described first Energy control instruction is the instruction of the power supply controlling described client; The corresponding second source Control Cooling of described second source control command is the instruction of the power supply controlling described client.
The method of 11. 1 kinds of Energy control, is characterized in that, comprising:
Client obtains the first Energy control instruction;
Perform respective handling to described first Energy control instruction, to control the power supply of virtual machine corresponding in Cloud Server, wherein, described first Energy control instruction is the control command controlling described client.
12. methods according to claim 11, is characterized in that, described to described first Energy control instruction execution respective handling, comprise with the power supply controlling virtual machine corresponding in Cloud Server:
Described first Energy control instruction is sent to described Cloud Server, so that described Cloud Server is according to described first Energy control instruction determination second source control command, and the power supply of virtual machine corresponding in described Cloud Server is controlled according to described second source control command, wherein, described second source control command is the instruction of the power supply controlling virtual machine corresponding in described Cloud Server; Or,
Described first Energy control instruction is sent to mapped device, so that described mapped device determines the 3rd Energy control instruction according to described first Energy control instruction, and described 3rd Energy control instruction is sent to described Cloud Server, so that described Cloud Server determines the 4th Energy control instruction according to described 3rd Energy control instruction, and the power supply of virtual machine corresponding in described Cloud Server is controlled according to described 4th Energy control instruction, wherein, described first Energy control instruction comprises the first Energy control type, described 3rd Energy control instruction comprises the 3rd Energy control type, it is the Energy control instruction controlling described client, the instruction of the power supply of virtual machine corresponding in described Cloud Server is controlled during described 4th Energy control instruction.
13. 1 kinds of Cloud Servers, is characterized in that, comprising:
Acquiring unit, for obtaining the first Energy control instruction;
Processing unit, for the first Energy control instruction determination second source control command obtained according to described acquiring unit;
Described processing unit also for, to control in described Cloud Server the power supply of corresponding virtual machine according to described second source control command, wherein, described first Energy control instruction is the control command of the power supply controlling described client; Described second source control command is the control command of the power supply controlling virtual machine corresponding in described Cloud Server;
Or also for performing respective handling to described second source control command, to control the power supply of described client, wherein, described first Energy control instruction is the control command of the power supply controlling virtual machine corresponding in described Cloud Server; Described second source control command is the control command of the power supply controlling described client.
14. Cloud Servers according to claim 13, is characterized in that, described acquiring unit also for, receive described client send described first Energy control instruction; Wherein, described first Energy control instruction is the instruction of the power supply controlling described client;
Described processing unit specifically for, to control in described Cloud Server the power supply of corresponding virtual machine according to described second source control command.
15. Cloud Servers according to claim 14, it is characterized in that, described processing unit specifically for, determine the first Energy control type that described first Energy control instruction is corresponding, be second source Control Cooling according to preset strategy by described first Energy control Type mapping, determine the 3rd corresponding Energy control instruction according to described second source Control Cooling, and determine described second source control command according to described 3rd Energy control instruction;
Wherein, described preset strategy comprises the corresponding relation of described first Energy control type and described second source Control Cooling; Described 3rd Energy control instruction is the instruction of the power supply controlling described client.
16. Cloud Servers according to claim 13, it is characterized in that, described acquiring unit specifically for, after the 4th Energy control command mappings received from described client is the first Energy control instruction by mapped device, receive the first Energy control instruction that described mapped device sends, wherein, the corresponding 3rd Energy control type of described first Energy control instruction is the instruction of the power supply controlling described client; The corresponding 4th Energy control type of described 4th Energy control instruction is the control command of the power supply controlling described client;
Described processing unit specifically for, to control in described Cloud Server the power supply of corresponding virtual machine according to described second source control command.
17. Cloud Servers according to claim 16, is characterized in that, described acquiring unit specifically for, obtain the first Energy control instruction; Wherein, described first Energy control instruction is the instruction of the power supply controlling virtual machine corresponding in described Cloud Server;
Described processing unit specifically for, respective handling is performed, to control the power supply of described client to described second source control command.
18. Cloud Servers according to claim 17, it is characterized in that, described processing unit, specifically for described second source control command is sent to described client, so that described client controls the power supply of described client according to described second source control command;
Or,
Specifically for determining the 5th Energy control instruction according to described second source control command, and described 5th Energy control instruction is sent to described client, so that described client controls the power supply of described client according to described 5th Energy control instruction, wherein, described 5th Energy control instruction is the instruction of the power supply controlling described client.
19. Cloud Servers according to claim 18, it is characterized in that, described processing unit specifically for, determine the 5th Energy control type that described second source control command is corresponding, be the 6th Energy control type according to preset strategy by described 5th Energy control Type mapping, and determine the 5th corresponding Energy control instruction according to described 6th Energy control type;
Wherein, described preset strategy comprises the corresponding relation of described 5th Energy control type and described 6th Energy control type.
20. Cloud Servers according to claim 17, it is characterized in that, described processing unit also for, described second source control command is sent to mapped device, so that described mapped device determines the 6th Energy control instruction according to described second source control command, and described 6th Energy control instruction is sent to described client, so that described client controls the power supply of described client according to described 6th Energy control instruction;
Wherein, the corresponding 7th Energy control type of described second source control command is the control command of the power supply controlling client; The corresponding 8th Energy control type of described 6th Energy control instruction is the control command of the power supply controlling client.
21. 1 kinds of clients, is characterized in that, comprising:
Acquiring unit, for receiving the first Energy control instruction that Cloud Server sends, wherein, described first Energy control instruction is the control command controlling described client;
Processing unit, the first Energy control instruction for obtaining according to described acquiring unit controls the power supply of described client.
22. clients according to claim 21, is characterized in that, described acquiring unit specifically for, receive Cloud Server send the first Energy control instruction; Or,
Specifically for after the second source control command from described cloud server is mapped as the first Energy control instruction by mapped device, receive the first Energy control instruction that described mapped device sends, wherein, the corresponding first Energy control type of described second source control command is the instruction of the power supply controlling described client; The corresponding first Energy control type of described first Energy control instruction is the instruction of the power supply controlling described client.
23. 1 kinds of clients, is characterized in that, comprising:
Acquiring unit, for obtaining the first Energy control instruction;
Processing unit, performs respective handling for the first Energy control instruction obtained described acquiring unit, and to control the power supply of virtual machine corresponding in Cloud Server, wherein, described first Energy control instruction is the control command controlling described client.
24. clients according to claim 23, it is characterized in that, described processing unit, specifically for described first Energy control instruction is sent to described Cloud Server, so that described Cloud Server is according to described first Energy control instruction determination second source control command, and the power supply of virtual machine corresponding in described Cloud Server is controlled according to described second source control command, wherein, described second source control command is the instruction of the power supply controlling virtual machine corresponding in described Cloud Server; Or,
Specifically for described first Energy control instruction is sent to mapped device, so that described mapped device determines the 3rd Energy control instruction according to described first Energy control instruction, and described 3rd Energy control instruction is sent to described Cloud Server, so that described Cloud Server determines the 4th Energy control instruction according to described 3rd Energy control instruction, and the power supply of virtual machine corresponding in described Cloud Server is controlled according to described 4th Energy control instruction, wherein, described first Energy control instruction comprises the first Energy control type, described 3rd Energy control instruction comprises the 3rd Energy control type, it is the Energy control instruction controlling described client, the instruction of the power supply of virtual machine corresponding in described Cloud Server is controlled during described 4th Energy control instruction.
CN201310463580.3A 2013-09-30 2013-09-30 A kind of method and apparatus of power supply Active CN104519104B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310463580.3A CN104519104B (en) 2013-09-30 2013-09-30 A kind of method and apparatus of power supply
PCT/CN2014/078479 WO2015043215A1 (en) 2013-09-30 2014-05-27 Power supply control method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310463580.3A CN104519104B (en) 2013-09-30 2013-09-30 A kind of method and apparatus of power supply

Publications (2)

Publication Number Publication Date
CN104519104A true CN104519104A (en) 2015-04-15
CN104519104B CN104519104B (en) 2018-02-23

Family

ID=52741959

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310463580.3A Active CN104519104B (en) 2013-09-30 2013-09-30 A kind of method and apparatus of power supply

Country Status (2)

Country Link
CN (1) CN104519104B (en)
WO (1) WO2015043215A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107092243A (en) * 2017-05-04 2017-08-25 中国科学院高能物理研究所 Power supply intelligent safety monitoring system based on Internet of Things
CN107357638A (en) * 2017-09-01 2017-11-17 郑州云海信息技术有限公司 The control method and control device of a kind of power supply status

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1390008A (en) * 2002-07-15 2003-01-08 廖正钢 Interlligent power supply managing system based on network and uninterrupted power source and its management method
CN101154130A (en) * 2006-09-30 2008-04-02 联想(北京)有限公司 Virtual machine system and its power supply management method
CN101403916A (en) * 2008-11-14 2009-04-08 郭子轩 Remote centralized monitoring method and system for intelligent power supply socket
CN102103712A (en) * 2009-12-18 2011-06-22 中兴通讯股份有限公司 Power supply configuration method and device
CN102326359A (en) * 2009-03-06 2012-01-18 华为技术有限公司 System and method of power management for a device with multiple network interfaces
CN102891756A (en) * 2011-07-20 2013-01-23 台达电子工业股份有限公司 Active power management architecture and active power management method
US20130151831A1 (en) * 2011-12-13 2013-06-13 International Business Machines Corporation Virtual Machine Monitor Bridge to Bare-Metal Booting

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070089163A1 (en) * 2005-10-18 2007-04-19 International Business Machines Corporation System and method for controlling security of a remote network power device
CN101599953A (en) * 2008-06-05 2009-12-09 英业达股份有限公司 Streamlined user system and simplify the method for managing power supply of subscriber's main station

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1390008A (en) * 2002-07-15 2003-01-08 廖正钢 Interlligent power supply managing system based on network and uninterrupted power source and its management method
CN101154130A (en) * 2006-09-30 2008-04-02 联想(北京)有限公司 Virtual machine system and its power supply management method
CN101403916A (en) * 2008-11-14 2009-04-08 郭子轩 Remote centralized monitoring method and system for intelligent power supply socket
CN102326359A (en) * 2009-03-06 2012-01-18 华为技术有限公司 System and method of power management for a device with multiple network interfaces
CN102103712A (en) * 2009-12-18 2011-06-22 中兴通讯股份有限公司 Power supply configuration method and device
CN102891756A (en) * 2011-07-20 2013-01-23 台达电子工业股份有限公司 Active power management architecture and active power management method
US20130151831A1 (en) * 2011-12-13 2013-06-13 International Business Machines Corporation Virtual Machine Monitor Bridge to Bare-Metal Booting

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107092243A (en) * 2017-05-04 2017-08-25 中国科学院高能物理研究所 Power supply intelligent safety monitoring system based on Internet of Things
CN107357638A (en) * 2017-09-01 2017-11-17 郑州云海信息技术有限公司 The control method and control device of a kind of power supply status

Also Published As

Publication number Publication date
CN104519104B (en) 2018-02-23
WO2015043215A1 (en) 2015-04-02

Similar Documents

Publication Publication Date Title
US20210021542A1 (en) Crowd-sourced cloud computing resource validation
CN103152200B (en) Virtual machine migration method, switch, network management device and network system
KR102274178B1 (en) Emulating test distributed application on server
US11468329B2 (en) Techniques to manage training or trained models for deep learning applications
CN106168993B (en) Real-time simulation analysis system for power grid
CN105335309A (en) Data transmission method and computer
US9331935B2 (en) Network device selection
US20170264682A1 (en) Data movement among distributed data centers
CN105785905A (en) Configurable field bus system and configuration method thereof
CN105702112A (en) Teaching type numerical control machine tool system and application thereof
CN104519104A (en) Power source control method and equipment
CN105700823A (en) Method and apparatus for transmitting data between IP hard disks
CN105792025A (en) Device information obtaining method and terminal
KR20160113671A (en) Data packet processing method and device based on parallel protocol stack instances
CN106130765B (en) Virtual desktop distribution method and device
CN108121596A (en) Data transmission method and device, storage medium, electronic equipment
CN104168213A (en) Data message processing method and device and network equipment in two-layer Internet
EP2942711B1 (en) Dynamic generation of proxy connections
CN112152947A (en) Processor, implementation method, electronic device and storage medium
CN103401721A (en) Network virtualization based TOR (top of rack) switch configuration method and device
CN106302046B (en) Control method for remote controller and device
CN105450526A (en) Message processing method and equipment
CN104580328A (en) Virtual machine migration method, device and system
CN109962788B (en) Multi-controller scheduling method, device and system and computer readable storage medium
CN108023837B (en) Virtual network switch system and establishing method thereof

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: 20220217

Address after: 550025 Huawei cloud data center, jiaoxinggong Road, Qianzhong Avenue, Gui'an New District, Guiyang City, Guizhou Province

Patentee after: Huawei Cloud Computing Technology Co.,Ltd.

Address before: 215123 Building A3, Creative Industry Park, 328 Xinghu Street, Suzhou Industrial Park, Jiangsu Province

Patentee before: Huawei digital technology (Suzhou) Co.,Ltd.