Feature #1835: Add poweroff --hard to cli, ruby & java oca

This commit is contained in:
Carlos Martín committed 2013-03-27 14:57:11 +01:00
1 parent 2589ab86fe
commit bf2a63daf6
3 files changed
+22 -5

No files matched your search

@@ -838,7 +838,20 @@ public class VirtualMachine extends PoolElement{
*/
public OneResponse poweroff()
{
return action("poweroff");
return poweroff(false);
}
/**
* Powers off a running VM.
* @param hard True to perform a hard (no acpi) shutdown, false for a
* graceful shutdown
* @return If an error occurs the error message contains the reason.
*/
public OneResponse poweroff(boolean hard)
{
String actionSt = hard ? "poweroff-hard" : "poweroff";
return action(actionSt);
}
/**