mirror of
https://github.com/OpenNebula/one.git
synced 2026-11-23 13:15:14 +09:00
1 parent
fc92951994
commit
3cd262eedd
1 file changed
+20
-2
@@ -82,6 +82,24 @@ public class Image extends PoolElement
|
||||
// Static XML-RPC methods
|
||||
// =================================
|
||||
|
||||
/**
|
||||
* Allocates a new Image in OpenNebula.
|
||||
*
|
||||
* @param client XML-RPC Client.
|
||||
* @param description A string containing the template of the image.
|
||||
* @param datastoreId The Datastore ID
|
||||
*
|
||||
* @return If successful the message contains the associated
|
||||
* id generated for this Image.
|
||||
*/
|
||||
public static OneResponse allocate(
|
||||
Client client,
|
||||
String description,
|
||||
int datastoreId)
|
||||
{
|
||||
return client.call(ALLOCATE, description, datastoreId, false);
|
||||
}
|
||||
|
||||
/**
|
||||
* Allocates a new Image in OpenNebula.
|
||||
*
|
||||
@@ -97,9 +115,9 @@ public class Image extends PoolElement
|
||||
Client client,
|
||||
String description,
|
||||
int datastoreId,
|
||||
boolean check_capacity = true)
|
||||
boolean no_check_capacity)
|
||||
{
|
||||
return client.call(ALLOCATE, description, datastoreId, check_capacity);
|
||||
return client.call(ALLOCATE, description, datastoreId, no_check_capacity);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user