public class VirtualDatacenter extends DomainWithLimitsWrapper<com.abiquo.server.core.cloud.VirtualDatacenterDto>
Virtual datacenters expose a set of compute, storage and networking resources that can be consumed by the tenants.
http://community.abiquo.com/display/ABI20/Virtual+Datacenter+Resource
Modifier and Type | Class and Description |
---|---|
static class |
VirtualDatacenter.Builder |
context, target
Modifier | Constructor and Description |
---|---|
protected |
VirtualDatacenter(RestContext<AbiquoApi,AbiquoAsyncApi> context,
com.abiquo.server.core.cloud.VirtualDatacenterDto target)
Constructor to be used only by the builder.
|
Modifier and Type | Method and Description |
---|---|
static VirtualDatacenter.Builder |
builder(RestContext<AbiquoApi,AbiquoAsyncApi> context,
Datacenter datacenter,
Enterprise enterprise) |
void |
delete()
Delete the virtual datacenter.
|
PublicIp |
findAvailablePublicIp(com.google.common.base.Predicate<PublicIp> filter) |
VirtualMachineTemplate |
findAvailableTemplate(com.google.common.base.Predicate<VirtualMachineTemplate> filter) |
HardDisk |
findHardDisk(com.google.common.base.Predicate<HardDisk> filter) |
PrivateNetwork |
findPrivateNetwork(com.google.common.base.Predicate<Network<PrivateIp>> filter) |
PublicIp |
findPurchasedPublicIp(com.google.common.base.Predicate<PublicIp> filter) |
Tier |
findStorageTier(com.google.common.base.Predicate<Tier> filter)
Finds the first the storage tier that is available to the virtual datacenter and matches the
given filter.
|
VirtualAppliance |
findVirtualAppliance(com.google.common.base.Predicate<VirtualAppliance> filter)
Gets the first virtual appliance in the virtual datacenter that match the given filter.
|
Volume |
findVolume(com.google.common.base.Predicate<Volume> filter)
Finds the first persistent volume in the virtual datacenter that matches the given filter.
|
VirtualMachineTemplate |
getAvailablePersistentTemplate(Integer id) |
VirtualMachineTemplate |
getAvailableTemplate(Integer id) |
Datacenter |
getDatacenter()
Gets the datacenter where this virtual datacenter is assigned.
|
Network<?> |
getDefaultNetwork() |
Enterprise |
getEnterprise()
Gets the enterprise that owns this virtual datacenter.
|
HardDisk |
getHardDisk(Integer id) |
com.abiquo.model.enumerator.HypervisorType |
getHypervisorType() |
Integer |
getId() |
String |
getName() |
PrivateNetwork |
getPrivateNetwork(Integer id) |
Tier |
getStorageTier(Integer id)
Gets the storage tier with the given id from the current virtual datacenter.
|
VirtualAppliance |
getVirtualAppliance(Integer id)
Gets the virtual appliance with the given id in the current virtual datacenter.
|
Volume |
getVolume(Integer id) |
List<PublicIp> |
listAvailablePublicIps() |
List<PublicIp> |
listAvailablePublicIps(com.google.common.base.Predicate<PublicIp> filter) |
List<VirtualMachineTemplate> |
listAvailableTempaltes(com.google.common.base.Predicate<VirtualMachineTemplate> filter) |
List<VirtualMachineTemplate> |
listAvailableTemplates()
TODO needs to be in the wiki
|
List<VirtualMachineTemplate> |
listAvailableTemplates(VirtualMachineTemplateOptions options) |
List<HardDisk> |
listHardDisks() |
List<HardDisk> |
listHardDisks(com.google.common.base.Predicate<HardDisk> filter) |
List<PrivateNetwork> |
listPrivateNetworks() |
List<PrivateNetwork> |
listPrivateNetworks(com.google.common.base.Predicate<Network<PrivateIp>> filter) |
List<PublicIp> |
listPurchasedPublicIps() |
List<PublicIp> |
listPurchasedPublicIps(com.google.common.base.Predicate<PublicIp> filter) |
List<Tier> |
listStorageTiers()
Lists the storage tiers that are available to the virtual datacenter.
|
List<Tier> |
listStorageTiers(com.google.common.base.Predicate<Tier> filter)
Lists the storage tiers that are available to the virtual datacenter and match the given
filter.
|
List<VirtualAppliance> |
listVirtualAppliances()
Lists all the virtual appliances in the virtual datacenter.
|
List<VirtualAppliance> |
listVirtualAppliances(com.google.common.base.Predicate<VirtualAppliance> filter)
Lists all the virtual appliances in the virtual datacenter that match the given filter.
|
List<Volume> |
listVolumes()
Lists all persistent volumes in the virtual datacenter.
|
List<Volume> |
listVolumes(com.google.common.base.Predicate<Volume> filter)
Lists all persistent volumes in the virtual datacenter that match the given filter.
|
void |
purchasePublicIp(PublicIp ip) |
void |
releaseePublicIp(PublicIp ip) |
void |
save()
Creates the virtual datacenter.
|
void |
setDefaultNetwork(Network<?> network) |
void |
setHypervisorType(com.abiquo.model.enumerator.HypervisorType hypervisorType) |
void |
setName(String name) |
String |
toString() |
void |
update()
Updates the virtual datacenter information when some of its properties have changed.
|
getCpuCountHardLimit, getCpuCountSoftLimit, getHdHardLimitInMb, getHdSoftLimitInMb, getPublicIpsHard, getPublicIpsSoft, getRamHardLimitInMb, getRamSoftLimitInMb, getStorageHard, getStorageSoft, getVlansHard, getVlansSoft, setCpuCountHardLimit, setCpuCountLimits, setCpuCountSoftLimit, setHdHardLimitInMb, setHdLimitsInMb, setHdSoftLimitInMb, setPublicIPLimits, setPublicIpsHard, setPublicIpsSoft, setRamHardLimitInMb, setRamLimitsInMb, setRamSoftLimitInMb, setStorageHard, setStorageLimits, setStorageSoft, setVlansHard, setVlansLimits, setVlansSoft
getParentId, getTask, getTasks, getURI, join, unwrap, unwrap, updateLink, wrap, wrap
protected VirtualDatacenter(RestContext<AbiquoApi,AbiquoAsyncApi> context, com.abiquo.server.core.cloud.VirtualDatacenterDto target)
public void delete()
public void save()
public void update()
public Datacenter getDatacenter()
http://community.abiquo.com/display/ABI20/Datacenter+Resource#DatacenterResource-
RetrieveaDatacenter
public Enterprise getEnterprise()
http://community.abiquo.com/display/ABI20/Enterprise+Resource#EnterpriseResource-
RetrieveanEnterprise
public List<VirtualAppliance> listVirtualAppliances()
http://community.abiquo.com/display/ABI20/Virtual+Appliance+Resource#
VirtualApplianceResource-RetrievethelistofVirtualAppliances
public List<VirtualAppliance> listVirtualAppliances(com.google.common.base.Predicate<VirtualAppliance> filter)
filter
- The filter to apply.http://community.abiquo.com/display/ABI20/Virtual+Appliance+Resource#
VirtualApplianceResource-RetrievethelistofVirtualAppliances
public VirtualAppliance findVirtualAppliance(com.google.common.base.Predicate<VirtualAppliance> filter)
filter
- The filter to apply.null
if none is found.http://community.abiquo.com/display/ABI20/Virtual+Appliance+Resource#
VirtualApplianceResource-RetrievethelistofVirtualAppliances
public VirtualAppliance getVirtualAppliance(Integer id)
id
- The id of the virtual appliance to get.public List<Tier> listStorageTiers()
http://community.abiquo.com/display/ABI20/Virtual+Datacenter+Resource#
VirtualDatacenterResource-Retrieveenabledtiers
public List<Tier> listStorageTiers(com.google.common.base.Predicate<Tier> filter)
filter
- The filter to apply. http://community.abiquo.com/display/ABI20/Virtual+Datacenter+Resource#
VirtualDatacenterResource-Retrieveenabledtiers
public Tier findStorageTier(com.google.common.base.Predicate<Tier> filter)
filter
- The filter to apply. http://community.abiquo.com/display/ABI20/Virtual+Datacenter+Resource#
VirtualDatacenterResource-Retrieveenabledtiers
public Tier getStorageTier(Integer id)
id
- The id of the storage tier.public List<Volume> listVolumes()
http://community.abiquo.com/display/ABI20/Volume+Resource#VolumeResource-
Retrievethelistofvolumes
public List<Volume> listVolumes(com.google.common.base.Predicate<Volume> filter)
filter
- The filter to apply. http://community.abiquo.com/display/ABI20/Volume+Resource#VolumeResource-
Retrievethelistofvolumes
public Volume findVolume(com.google.common.base.Predicate<Volume> filter)
filter
- The filter to apply. http://community.abiquo.com/display/ABI20/Volume+Resource#VolumeResource-
Retrievethelistofvolumes
public List<HardDisk> listHardDisks(com.google.common.base.Predicate<HardDisk> filter)
public Network<?> getDefaultNetwork()
public List<PrivateNetwork> listPrivateNetworks()
public List<PrivateNetwork> listPrivateNetworks(com.google.common.base.Predicate<Network<PrivateIp>> filter)
public PrivateNetwork findPrivateNetwork(com.google.common.base.Predicate<Network<PrivateIp>> filter)
public PrivateNetwork getPrivateNetwork(Integer id)
public List<VirtualMachineTemplate> listAvailableTemplates()
public List<VirtualMachineTemplate> listAvailableTemplates(VirtualMachineTemplateOptions options)
public List<VirtualMachineTemplate> listAvailableTempaltes(com.google.common.base.Predicate<VirtualMachineTemplate> filter)
public VirtualMachineTemplate findAvailableTemplate(com.google.common.base.Predicate<VirtualMachineTemplate> filter)
public VirtualMachineTemplate getAvailableTemplate(Integer id)
public VirtualMachineTemplate getAvailablePersistentTemplate(Integer id)
public List<PublicIp> listAvailablePublicIps(com.google.common.base.Predicate<PublicIp> filter)
public PublicIp findAvailablePublicIp(com.google.common.base.Predicate<PublicIp> filter)
public List<PublicIp> listPurchasedPublicIps(com.google.common.base.Predicate<PublicIp> filter)
public PublicIp findPurchasedPublicIp(com.google.common.base.Predicate<PublicIp> filter)
public void purchasePublicIp(PublicIp ip)
public void releaseePublicIp(PublicIp ip)
public void setDefaultNetwork(Network<?> network)
public static VirtualDatacenter.Builder builder(RestContext<AbiquoApi,AbiquoAsyncApi> context, Datacenter datacenter, Enterprise enterprise)
public com.abiquo.model.enumerator.HypervisorType getHypervisorType()
public Integer getId()
public String getName()
public void setHypervisorType(com.abiquo.model.enumerator.HypervisorType hypervisorType)
public void setName(String name)
Copyright © 2009-2013 jclouds. All Rights Reserved.