Feature #2828: add new param to java oca

This commit is contained in:
Carlos Martín committed 2014-04-08 12:17:37 +02:00
1 parent d773eb690e
commit 0e5a252ffd
3 files changed
+16 -10

No files matched your search

@@ -365,12 +365,16 @@ public class VirtualMachine extends PoolElement{
* the default type
* @param hot True to save the disk immediately, false will perform
* the operation when the VM shuts down
* @param doTemplate True to clone also the VM originating template
* and replace the disk with the saved image
* @return If an error occurs the error message contains the reason.
*/
public static OneResponse diskSnapshot(Client client, int id,
int diskId, String imageName, String imageType, boolean hot)
int diskId, String imageName, String imageType,
boolean hot, boolean doTemplate)
{
return client.call(SAVEDISK, id ,diskId, imageName, imageType, hot);
return client.call(SAVEDISK, id ,diskId, imageName, imageType,
hot, doTemplate);
}
/**
@@ -707,12 +711,15 @@ public class VirtualMachine extends PoolElement{
* the default type
* @param hot True to save the disk immediately, false will perform
* the operation when the VM shuts down
* @param doTemplate True to clone also the VM originating template
* and replace the disk with the saved image
* @return If an error occurs the error message contains the reason.
*/
public OneResponse diskSnapshot(int diskId, String imageName,
String imageType, boolean hot)
String imageType, boolean hot, boolean doTemplate)
{
return diskSnapshot(client, id, diskId, imageName, imageType, hot);
return diskSnapshot(client, id, diskId, imageName, imageType,
hot, doTemplate);
}
/**
@@ -725,7 +732,7 @@ public class VirtualMachine extends PoolElement{
*/
public OneResponse diskSnapshot(int diskId, String imageName)
{
return diskSnapshot(diskId, imageName, "", false);
return diskSnapshot(diskId, imageName, "", false, false);
}
/**
@@ -739,7 +746,7 @@ public class VirtualMachine extends PoolElement{
*/
public OneResponse diskSnapshot(int diskId, String imageName, boolean hot)
{
return diskSnapshot(diskId, imageName, "", hot);
return diskSnapshot(diskId, imageName, "", hot, false);
}
/**
@@ -1136,11 +1143,11 @@ public class VirtualMachine extends PoolElement{
}
/**
* @deprecated Replaced by {@link #diskSnapshot(int,String,String,boolean)}
* @deprecated Replaced by {@link #diskSnapshot(int,String,String,boolean,boolean)}
*/
public OneResponse savedisk(int diskId, String imageName, String imageType)
{
return diskSnapshot(diskId, imageName, imageType, false);
return diskSnapshot(diskId, imageName, imageType, false, false);
}
/**