1
0
mirror of https://github.com/OpenNebula/one.git synced 2025-02-04 17:47:00 +03:00

Feature #1404: Add poweroff action to Java OCA

This commit is contained in:
Carlos Martín 2012-10-03 18:31:45 +02:00
parent 26b0193169
commit 69eb361d7a

View File

@ -491,6 +491,15 @@ public class VirtualMachine extends PoolElement{
return action("shutdown");
}
/**
* Powers off a running VM.
* @return If an error occurs the error message contains the reason.
*/
public OneResponse poweroff()
{
return action("poweroff");
}
/**
* Reboots a running VM.
* @return If an error occurs the error message contains the reason.