Feature #1103: Add hold param to ruby & java oca, and cli.

onetemplate instantiate needs to be done also
This commit is contained in:
Carlos Martín committed 2012-12-20 16:25:42 +01:00
1 parent cec1f87689
commit 8d8da16758
4 files changed
+33 -6

No files matched your search

@@ -150,7 +150,22 @@ public class VirtualMachine extends PoolElement{
*/
public static OneResponse allocate(Client client, String description)
{
return client.call(ALLOCATE, description);
return allocate(client, description, false);
}
/**
* Allocates a new VM in OpenNebula.
*
* @param client XML-RPC Client.
* @param description A string containing the template of the vm.
* @param onHold False to create this VM in pending state, true on hold
* @return If successful the message contains the associated
* id generated for this VM.
*/
public static OneResponse allocate(Client client, String description,
boolean onHold)
{
return client.call(ALLOCATE, description, onHold);
}
/**