From 1f3b50ba354a2f4fdcfdc3ed7ef7c45f20f70529 Mon Sep 17 00:00:00 2001 From: "Ruben S. Montero" Date: Mon, 26 Dec 2011 00:54:57 +0100 Subject: [PATCH] feature #132: Reboot for OCA (Java Bindings) --- .../src/org/opennebula/client/vm/VirtualMachine.java | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/oca/java/src/org/opennebula/client/vm/VirtualMachine.java b/src/oca/java/src/org/opennebula/client/vm/VirtualMachine.java index ccb89f254d..2660b4d9ac 100644 --- a/src/oca/java/src/org/opennebula/client/vm/VirtualMachine.java +++ b/src/oca/java/src/org/opennebula/client/vm/VirtualMachine.java @@ -248,6 +248,7 @@ public class VirtualMachine extends PoolElement{ * It is recommended to use the helper methods instead: * * * @param action The action name to be performed, can be:
- * "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.