feature #1243: Add resched flag to VMs. Includes associated logic to make it work: RM methods, OCA bindings, CLI commands. LCM updated to clear the resched flag when leaving the running state Fixes VM tests

This commit is contained in:
Ruben S. Montero committed 2012-04-26 19:06:49 +02:00
1 parent d364c3e57f
commit 8ff221052d
16 files changed
+255 -37

No files matched your search

@@ -501,6 +501,24 @@ public class VirtualMachine extends PoolElement{
return action("resubmit");
}
/**
* Sets the re-scheduling flag for the VM
* @return If an error occurs the error message contains the reason.
*/
public OneResponse resched()
{
return action("resched");
}
/**
* Unsets the re-scheduling flag for the VM
* @return If an error occurs the error message contains the reason.
*/
public OneResponse unresched()
{
return action("unresched");
}
/**
* Migrates the virtual machine to the target host (hid).
* <br/>