feature #132: Reboot for OCA (Java Bindings)

This commit is contained in:
Ruben S. Montero committed 2011-12-26 00:54:57 +01:00
1 parent 39cd73f405
commit 1f3b50ba35
1 file changed
+11 -1
@@ -248,6 +248,7 @@ public class VirtualMachine extends PoolElement{
* It is recommended to use the helper methods instead:
* <ul>
* <li>{@link VirtualMachine#shutdown()}</li>
* <li>{@link VirtualMachine#reboot()}</li>
* <li>{@link VirtualMachine#cancel()}</li>
* <li>{@link VirtualMachine#hold()}</li>
* <li>{@link VirtualMachine#release()}</li>
@@ -259,7 +260,7 @@ public class VirtualMachine extends PoolElement{
* </ul>
*
* @param action The action name to be performed, can be:<br/>
* "shutdown", "hold", "release", "stop", "cancel", "suspend",
* "shutdown", "reboot", "hold", "release", "stop", "cancel", "suspend",
* "resume", "restart", "finalize".
* @return If an error occurs the error message contains the reason.
*/
@@ -357,6 +358,15 @@ public class VirtualMachine extends PoolElement{
return action("shutdown");
}
/**
* Reboots a running VM.
* @return If an error occurs the error message contains the reason.
*/
public OneResponse reboot()
{
return action("reboot");
}
/**
* Cancels the running VM.
* @return If an error occurs the error message contains the reason.