public class VirtualAppliance extends DomainWrapper<com.abiquo.server.core.cloud.VirtualApplianceDto>
A virtual appliance is a logic container for virtual machines that together make an appliance.
http://community.abiquo.com/display/ABI20/Virtual+Appliance+Resource
Modifier and Type | Class and Description |
---|---|
static class |
VirtualAppliance.Builder |
context, target
Modifier | Constructor and Description |
---|---|
protected |
VirtualAppliance(RestContext<AbiquoApi,AbiquoAsyncApi> context,
com.abiquo.server.core.cloud.VirtualApplianceDto target)
Constructor to be used only by the builder.
|
Modifier and Type | Method and Description |
---|---|
static VirtualAppliance.Builder |
builder(RestContext<AbiquoApi,AbiquoAsyncApi> context,
VirtualDatacenter virtualDatacenter) |
void |
delete()
Deletes the virtual appliance.
|
AsyncTask[] |
deploy()
Deploys the virtual appliance.
|
AsyncTask[] |
deploy(boolean forceEnterpriseSoftLimits)
Deploys the virtual appliance.
|
VirtualMachine |
findVirtualMachine(com.google.common.base.Predicate<VirtualMachine> filter)
Gets a single virtual machine in the virtual appliance matching the given filter.
|
Enterprise |
getEnterprise()
Gets the enterprise where the virtual appliance belongs to.
|
int |
getError() |
int |
getHighDisponibility() |
Integer |
getId() |
String |
getName() |
int |
getPublicApp() |
com.abiquo.server.core.cloud.VirtualApplianceState |
getState()
Gets the current state of the virtual appliance.
|
VirtualDatacenter |
getVirtualDatacenter()
Gets the virtual datacenter where the virtual appliance belongs to.
|
VirtualMachine |
getVirtualMachine(Integer id)
Gets a concrete virtual machine in the virtual appliance.
|
List<VirtualMachine> |
listVirtualMachines()
Gets the list of virtual machines in the virtual appliance.
|
List<VirtualMachine> |
listVirtualMachines(com.google.common.base.Predicate<VirtualMachine> filter)
Gets the list of virtual machines in the virtual appliance matching the given filter.
|
List<VirtualMachine> |
listVirtualMachines(VirtualMachineOptions options)
Gets the list of virtual machines in the virtual appliance.
|
void |
save()
Creates the virtual appliance in the selected virtual datacenter.
|
void |
setHighDisponibility(int highDisponibility) |
void |
setName(String name) |
void |
setPublicApp(int publicApp) |
String |
toString() |
AsyncTask[] |
undeploy()
Undeploys the virtual appliance.
|
AsyncTask[] |
undeploy(boolean forceUndeploy)
Undeploys the virtual appliance.
|
void |
update()
Updates the virtual appliance information when some of its properties have changed.
|
getParentId, getTask, getTasks, getURI, join, unwrap, unwrap, updateLink, wrap, wrap
protected VirtualAppliance(RestContext<AbiquoApi,AbiquoAsyncApi> context, com.abiquo.server.core.cloud.VirtualApplianceDto target)
public void delete()
public void save()
public void update()
public VirtualDatacenter getVirtualDatacenter()
public Enterprise getEnterprise()
http://community.abiquo.com/display/ABI20/Enterprise+Resource#EnterpriseResource-
RetrieveaEnterprise
public com.abiquo.server.core.cloud.VirtualApplianceState getState()
public List<VirtualMachine> listVirtualMachines()
http://community.abiquo.com/display/ABI18/Virtual+Machine+Resource#VirtualMachineResource
-RetrievethelistofVirtualMachines.
public List<VirtualMachine> listVirtualMachines(VirtualMachineOptions options)
http://community.abiquo.com/display/ABI18/Virtual+Machine+Resource#VirtualMachineResource
-RetrievethelistofVirtualMachines.
public List<VirtualMachine> listVirtualMachines(com.google.common.base.Predicate<VirtualMachine> filter)
filter
- The filter to apply.public VirtualMachine findVirtualMachine(com.google.common.base.Predicate<VirtualMachine> filter)
filter
- The filter to apply.null
if none matched the given filter.public VirtualMachine getVirtualMachine(Integer id)
id
- The id of the virtual machine.public AsyncTask[] deploy()
This method will start the deployment of all the virtual machines in the virtual appliance,
and will return an AsyncTask
reference for each deployment operation. The deployment
will finish when all individual tasks finish.
public AsyncTask[] deploy(boolean forceEnterpriseSoftLimits)
This method will start the deployment of all the virtual machines in the virtual appliance,
and will return an AsyncTask
reference for each deploy operation. The deployment will
finish when all individual tasks finish.
forceEnterpriseSoftLimits
- Boolean indicating if the deployment must be executed even
if the enterprise soft limits are reached.public AsyncTask[] undeploy()
This method will start the undeploy of all the virtual machines in the virtual appliance, and
will return an AsyncTask
reference for each undeploy operation. The undeploy will
finish when all individual tasks finish.
public AsyncTask[] undeploy(boolean forceUndeploy)
This method will start the undeploy of all the virtual machines in the virtual appliance, and
will return an AsyncTask
reference for each undeploy operation. The undeploy will
finish when all individual tasks finish.
forceUndeploy
- Boolean flag to force the undeploy even if the virtual appliance
contains imported virtual machines.public static VirtualAppliance.Builder builder(RestContext<AbiquoApi,AbiquoAsyncApi> context, VirtualDatacenter virtualDatacenter)
public int getError()
public int getHighDisponibility()
public Integer getId()
public String getName()
public int getPublicApp()
public void setHighDisponibility(int highDisponibility)
public void setName(String name)
public void setPublicApp(int publicApp)
Copyright © 2009-2013 jclouds. All Rights Reserved.