public class VirtualMachineTemplate extends DomainWrapper<com.abiquo.server.core.appslibrary.VirtualMachineTemplateDto>
VirtualMachineTemplateDto
.
http://community.abiquo.com/display/ABI20/Virtual+Machine+Template+Resource
context, target
Modifier | Constructor and Description |
---|---|
protected |
VirtualMachineTemplate(RestContext<AbiquoApi,AbiquoAsyncApi> context,
com.abiquo.server.core.appslibrary.VirtualMachineTemplateDto target)
Constructor to be used only by the builder.
|
Modifier and Type | Method and Description |
---|---|
void |
delete() |
Conversion |
findConversion(com.google.common.base.Predicate<Conversion> filter)
Gets a single conversion in the virtual machine template matching the given filter.
|
Category |
getCategory() |
int |
getCpuRequired() |
Date |
getCreationDate() |
String |
getCreationUser() |
Datacenter |
getDatacenter() |
String |
getDescription() |
long |
getDiskFileSize() |
com.abiquo.model.enumerator.DiskFormatType |
getDiskFormatType() |
Enterprise |
getEnterprise() |
long |
getHdRequired() |
String |
getIconUrl() |
Integer |
getId() |
String |
getName() |
String |
getPath() |
int |
getRamRequired() |
Volume |
getVolume() |
boolean |
isChefEnabled() |
boolean |
isPersistent() |
List<Conversion> |
listConversions()
List all the conversions for the virtual machine template.
|
List<Conversion> |
listConversions(com.abiquo.model.enumerator.HypervisorType hypervisor,
com.abiquo.model.enumerator.ConversionState state)
List conversions for a virtual machine template.
|
List<Conversion> |
listConversions(com.google.common.base.Predicate<Conversion> filter)
List all the conversions for the virtual machine template matching the given filter.
|
AsyncTask |
makePersistent(VirtualDatacenter vdc,
Tier tier,
String persistentTemplateName,
String persistentVolumeName) |
AsyncTask |
makePersistent(VirtualDatacenter vdc,
Volume volume,
String persistentTemplateName)
TODO
|
AsyncTask |
requestConversion(com.abiquo.model.enumerator.DiskFormatType diskFormat)
Starts a new conversion for a virtual machine template.
|
void |
setChefEnabled(boolean chefEnabled) |
void |
setName(String name) |
String |
toString() |
void |
update() |
getParentId, getTask, getTasks, getURI, join, unwrap, unwrap, updateLink, wrap, wrap
protected VirtualMachineTemplate(RestContext<AbiquoApi,AbiquoAsyncApi> context, com.abiquo.server.core.appslibrary.VirtualMachineTemplateDto target)
public void delete()
public void update()
public AsyncTask makePersistent(VirtualDatacenter vdc, Volume volume, String persistentTemplateName)
vdc
- volume
- persistentTemplateName
- persistentVolumeName
- public AsyncTask makePersistent(VirtualDatacenter vdc, Tier tier, String persistentTemplateName, String persistentVolumeName)
public Category getCategory()
public Volume getVolume()
public boolean isPersistent()
public Enterprise getEnterprise()
public Datacenter getDatacenter()
public List<Conversion> listConversions()
http://community.abiquo.com/display/ABI20/Conversion+Resource#ConversionResource-
ListConversions
public List<Conversion> listConversions(com.google.common.base.Predicate<Conversion> filter)
filter
- The filter to apply.public Conversion findConversion(com.google.common.base.Predicate<Conversion> filter)
filter
- The filter to apply.null
if none matched the given filter.public List<Conversion> listConversions(com.abiquo.model.enumerator.HypervisorType hypervisor, com.abiquo.model.enumerator.ConversionState state)
hypervisor,
- Optionally filter conversions compatible with the provided hypervisorstate,
- Optionally filter conversions with the desired state http://community.abiquo.com/display/ABI20/Conversion+Resource#ConversionResource-
ListConversions
public AsyncTask requestConversion(com.abiquo.model.enumerator.DiskFormatType diskFormat)
diskFormat,
- desired target format for the request template http://community.abiquo.com/display/ABI20/Conversion+Resource#ConversionResource-
RequestConversion
public int getCpuRequired()
public Date getCreationDate()
public String getCreationUser()
public String getDescription()
public long getDiskFileSize()
public com.abiquo.model.enumerator.DiskFormatType getDiskFormatType()
public long getHdRequired()
public String getName()
public String getPath()
public int getRamRequired()
public boolean isChefEnabled()
public void setChefEnabled(boolean chefEnabled)
public void setName(String name)
public Integer getId()
public String getIconUrl()
Copyright © 2009-2013 jclouds. All Rights Reserved.