public class VirtualMachine extends DomainWithTasksWrapper<com.abiquo.server.core.cloud.VirtualMachineWithNodeExtendedDto>
VirtualMachineWithNodeExtendedDto
.
http://community.abiquo.com/display/ABI20/VirtualMachineResource
Modifier and Type | Class and Description |
---|---|
static class |
VirtualMachine.Builder |
context, target
Modifier | Constructor and Description |
---|---|
protected |
VirtualMachine(RestContext<AbiquoApi,AbiquoAsyncApi> context,
com.abiquo.server.core.cloud.VirtualMachineWithNodeExtendedDto target)
Constructor to be used only by the builder.
|
Modifier and Type | Method and Description |
---|---|
void |
attachDvd() |
AsyncTask |
attachHardDisks(HardDisk... hardDisks) |
AsyncTask |
attachVolumes(Volume... volumes) |
static VirtualMachine.Builder |
builder(RestContext<AbiquoApi,AbiquoAsyncApi> context,
VirtualAppliance virtualAppliance,
VirtualMachineTemplate template) |
AsyncTask |
changeState(com.abiquo.server.core.cloud.VirtualMachineState state)
Change the state of the virtual machine.
|
void |
delete()
Delete the virtual machine.
|
AsyncTask |
deploy() |
AsyncTask |
deploy(boolean forceEnterpriseSoftLimits) |
AsyncTask |
detachAllHardDisks() |
AsyncTask |
detachAllVolumes() |
void |
detachDvd() |
AsyncTask |
detachHardDisks(HardDisk... hardDisks) |
AsyncTask |
detachVolumes(Volume... volumes) |
HardDisk |
findAttachedHardDisk(com.google.common.base.Predicate<HardDisk> filter) |
Ip<?,?> |
findAttachedNic(com.google.common.base.Predicate<Ip<?,?>> filter) |
Volume |
findAttachedVolume(com.google.common.base.Predicate<Volume> filter) |
int |
getCpu() |
String |
getDescription() |
Enterprise |
getEnterprise()
Retrieve the enterprise of this virtual machine.
|
long |
getHdInBytes() |
Integer |
getId() |
int |
getIdState() |
int |
getIdType() |
String |
getInternalName() |
String |
getKeymap() |
String |
getNameLabel() |
String |
getOwnerName() |
String |
getPassword() |
int |
getRam() |
com.abiquo.server.core.cloud.VirtualMachineState |
getState()
Retrieve the state of the virtual machine.
|
VirtualMachineTemplate |
getTemplate()
Retrieve the template of this virtual machine.
|
String |
getUuid() |
VirtualAppliance |
getVirtualAppliance()
Retrieve the virtual appliance where this virtual machine is.
|
VirtualDatacenter |
getVirtualDatacenter()
Retrieve the virtual datacenter where this virtual machine is.
|
String |
getVncAddress() |
int |
getVncPort() |
boolean |
hasDvd() |
boolean |
isPersistent()
Checks if the virtual machine is persistent.
|
List<HardDisk> |
listAttachedHardDisks() |
List<HardDisk> |
listAttachedHardDisks(com.google.common.base.Predicate<HardDisk> filter) |
List<Ip<?,?>> |
listAttachedNics() |
List<Ip<?,?>> |
listAttachedNics(com.google.common.base.Predicate<Ip<?,?>> filter) |
List<Volume> |
listAttachedVolumes() |
List<Volume> |
listAttachedVolumes(com.google.common.base.Predicate<Volume> filter) |
AsyncTask |
reboot()
Reboot a virtual machine.
|
void |
refresh() |
void |
save()
Create a new virtual machine in Abiquo.
|
void |
setCpu(int cpu) |
void |
setDescription(String description) |
void |
setGatewayNetwork(Network<?> network) |
AsyncTask |
setHardDisks(HardDisk... hardDisks) |
void |
setKeymap(String keymap) |
void |
setNameLabel(String nameLabel) |
AsyncTask |
setNics(List<Ip<?,?>> ips) |
AsyncTask |
setNics(List<Ip<?,?>> ips,
List<UnmanagedNetwork> unmanagetNetworks) |
AsyncTask |
setNics(Network<?> gatewayNetwork,
List<Ip<?,?>> ips) |
AsyncTask |
setNics(Network<?> gatewayNetwork,
List<Ip<?,?>> ips,
List<UnmanagedNetwork> unmanagetNetworks) |
void |
setPassword(String password) |
void |
setRam(int ram) |
AsyncTask |
setVolumes(Boolean forceSoftLimits,
Volume... volumes) |
AsyncTask |
setVolumes(Volume... volumes) |
String |
toString() |
AsyncTask |
undeploy() |
AsyncTask |
undeploy(boolean forceUndeploy) |
AsyncTask |
update()
Update virtual machine information in the server with the data from this virtual machine.
|
AsyncTask |
update(boolean force)
Update virtual machine information in the server with the data from this virtual machine.
|
findTask, listTasks, listTasks
getParentId, getTask, getTasks, getURI, join, unwrap, unwrap, updateLink, wrap, wrap
protected VirtualMachine(RestContext<AbiquoApi,AbiquoAsyncApi> context, com.abiquo.server.core.cloud.VirtualMachineWithNodeExtendedDto target)
public void delete()
public void save()
public AsyncTask update()
AsyncTask
object that keeps track of the task
completion. Please refer to the documentation for details.null
if the operation completed synchronously. http://community.abiquo.com/display/ABI20/VirtualMachineResource#
VirtualMachineResource-Modifyavirtualmachine
,
https://github.com/abiquo/jclouds-abiquo/wiki/Asynchronous-monitor-example
public AsyncTask update(boolean force)
AsyncTask
object that keeps track of the task
completion. Please refer to the documentation for details.force
- Force update.null
if the operation completed synchronously. http://community.abiquo.com/display/ABI20/VirtualMachineResource#
VirtualMachineResource-Modifyavirtualmachine
,
https://github.com/abiquo/jclouds-abiquo/wiki/Asynchronous-monitor-example
public AsyncTask changeState(com.abiquo.server.core.cloud.VirtualMachineState state)
AsyncTask
object that keeps track of the task
completion. Please refer to the documentation for details.state
- The new state of the virtual machine.null
if the operation completed synchronously. http://community.abiquo.com/display/ABI20/VirtualMachineResource#
VirtualMachineResource-Changethestateofavirtualmachine
,
https://github.com/abiquo/jclouds-abiquo/wiki/Asynchronous-monitor-example
public com.abiquo.server.core.cloud.VirtualMachineState getState()
http://community.abiquo.com/display/ABI20/VirtualMachineResource#
VirtualMachineResource-Retrievethestateofthevirtualmachine
public void refresh()
public VirtualAppliance getVirtualAppliance()
http://community.abiquo.com/display/ABI20/VirtualApplianceResource#
VirtualApplianceResource-Retrieveavirtualappliance
public VirtualDatacenter getVirtualDatacenter()
http://community.abiquo.com/display/ABI20/VirtualDatacenterResource#
VirtualDatacenterResource-Retireveavirtualdatacenter
public Enterprise getEnterprise()
http://community.abiquo.com/display/ABI20/EnterpriseResource#EnterpriseResource-
RetrieveanEnterprise
public VirtualMachineTemplate getTemplate()
public List<HardDisk> listAttachedHardDisks(com.google.common.base.Predicate<HardDisk> filter)
public HardDisk findAttachedHardDisk(com.google.common.base.Predicate<HardDisk> filter)
public List<Volume> listAttachedVolumes(com.google.common.base.Predicate<Volume> filter)
public Volume findAttachedVolume(com.google.common.base.Predicate<Volume> filter)
public List<Ip<?,?>> listAttachedNics(com.google.common.base.Predicate<Ip<?,?>> filter)
public AsyncTask deploy()
public AsyncTask deploy(boolean forceEnterpriseSoftLimits)
public AsyncTask undeploy()
public AsyncTask undeploy(boolean forceUndeploy)
public AsyncTask reboot()
AsyncTask
object that keeps track of the task
completion. Please refer to the documentation for details.null
if the operation completed synchronously. http://community.abiquo.com/display/ABI20/Rack+Resource#/VirtualMachineResource#
VirtualMachineResource-Resetavirtualmachine
,
https://github.com/abiquo/jclouds-abiquo/wiki/Asynchronous-monitor-example
public AsyncTask detachAllHardDisks()
public AsyncTask detachAllVolumes()
public AsyncTask setNics(List<Ip<?,?>> ips, List<UnmanagedNetwork> unmanagetNetworks)
public AsyncTask setNics(Network<?> gatewayNetwork, List<Ip<?,?>> ips, List<UnmanagedNetwork> unmanagetNetworks)
public void setGatewayNetwork(Network<?> network)
public boolean isPersistent()
Persistent virtual machines have the system disc in an external volume. This way, when the virtual machine is undeployed, the contents of the system disk remain in the storage device and the user can deploy the virtual machine again without losing the data in the system disk.
public boolean hasDvd()
public void attachDvd()
public void detachDvd()
public static VirtualMachine.Builder builder(RestContext<AbiquoApi,AbiquoAsyncApi> context, VirtualAppliance virtualAppliance, VirtualMachineTemplate template)
public int getCpu()
public String getDescription()
public long getHdInBytes()
public Integer getId()
public int getIdState()
public int getIdType()
public String getNameLabel()
public String getOwnerName()
public String getInternalName()
public String getPassword()
public int getRam()
public String getUuid()
public String getVncAddress()
public int getVncPort()
public String getKeymap()
public void setCpu(int cpu)
public void setDescription(String description)
public void setNameLabel(String nameLabel)
public void setPassword(String password)
public void setRam(int ram)
public void setKeymap(String keymap)
Copyright © 2009-2013 jclouds. All Rights Reserved.