public class Datacenter extends DomainWrapper<com.abiquo.server.core.infrastructure.DatacenterDto>
DatacenterDto.
      http://community.abiquo.com/display/ABI20/DatacenterResource| Modifier and Type | Class and Description | 
|---|---|
static class  | 
Datacenter.Builder  | 
context, target| Modifier | Constructor and Description | 
|---|---|
protected  | 
Datacenter(RestContext<AbiquoApi,AbiquoAsyncApi> context,
          com.abiquo.server.core.infrastructure.DatacenterDto target)
Constructor to be used only by the builder. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static Datacenter.Builder | 
builder(RestContext<AbiquoApi,AbiquoAsyncApi> context)  | 
com.abiquo.model.enumerator.MachineIpmiState | 
checkMachineIpmiState(String ip,
                     String user,
                     String password)
Check the ipmi configuration state of a remote machine. 
 | 
com.abiquo.model.enumerator.MachineIpmiState | 
checkMachineIpmiState(String ip,
                     String user,
                     String password,
                     IpmiOptions options)
Check the ipmi configuration state of a remote machine. 
 | 
com.abiquo.model.enumerator.MachineState | 
checkMachineState(String ip,
                 com.abiquo.model.enumerator.HypervisorType hypervisorType,
                 String user,
                 String password)
Check the state of a remote machine. 
 | 
com.abiquo.model.enumerator.MachineState | 
checkMachineState(String ip,
                 com.abiquo.model.enumerator.HypervisorType hypervisorType,
                 String user,
                 String password,
                 MachineOptions options)
Check the state of a remote machine. 
 | 
com.abiquo.model.enumerator.VlanTagAvailabilityType | 
checkTagAvailability(int tag)
The cloud administrator will find it useful to know if a VLAN Tag is already assigned before
 creating a new Public or External Network. 
 | 
void | 
delete()
Delete the datacenter. 
 | 
List<Machine> | 
discoverMultipleMachines(String ipFrom,
                        String ipTo,
                        com.abiquo.model.enumerator.HypervisorType hypervisorType,
                        String user,
                        String password)
Searches multiple remote machines and retrieves an Machine list with its information. 
 | 
List<Machine> | 
discoverMultipleMachines(String ipFrom,
                        String ipTo,
                        com.abiquo.model.enumerator.HypervisorType hypervisorType,
                        String user,
                        String password,
                        int port)
Searches multiple remote machines and retrieves an Machine list with its information. 
 | 
Machine | 
discoverSingleMachine(String ip,
                     com.abiquo.model.enumerator.HypervisorType hypervisorType,
                     String user,
                     String password)
Searches a remote machine and retrieves an Machine object with its information. 
 | 
Machine | 
discoverSingleMachine(String ip,
                     com.abiquo.model.enumerator.HypervisorType hypervisorType,
                     String user,
                     String password,
                     int port)
Searches a remote machine and retrieves an Machine object with its information. 
 | 
com.abiquo.model.enumerator.HypervisorType | 
findHypervisor(com.google.common.base.Predicate<com.abiquo.model.enumerator.HypervisorType> filter)
Retrieve the first hypervisor type matching the filter within the list of types. 
 | 
Limits | 
findLimits(com.google.common.base.Predicate<Limits> filter)
Retrieve the first datacenter limits matching the filter within the list of datacenter limits
 by enterprise. 
 | 
ManagedRack | 
findManagedRack(com.google.common.base.Predicate<ManagedRack> filter)
Retrieve the first managed rack matching the filter within the list of racks in this
 datacenter. 
 | 
Network<?> | 
findNetwork(com.abiquo.model.enumerator.NetworkType type,
           com.google.common.base.Predicate<Network<?>> filter)
Retrieve the first network of the given type matching the filter. 
 | 
Network<?> | 
findNetwork(com.google.common.base.Predicate<Network<?>> filter)
Retrieve the first network matching the filter within the list of networks. 
 | 
Rack | 
findRack(com.google.common.base.Predicate<Rack> filter)
Retrieve the first unmanaged rack matching the filter within the list of racks in this
 datacenter. 
 | 
RemoteService | 
findRemoteService(com.google.common.base.Predicate<RemoteService> filter)
Retrieve the first remote service matching the filter within the list of remote services in
 this datacenter. 
 | 
StorageDevice | 
findStorageDevice(com.google.common.base.Predicate<StorageDevice> filter)
Retrieve the first storage device matching the filter within the list of devices in this
 datacenter. 
 | 
StorageDeviceMetadata | 
findSupportedStorageDevice(com.google.common.base.Predicate<StorageDeviceMetadata> filter)
Retrieve a single supported storage devices matching the filter. 
 | 
VirtualMachineTemplate | 
findTemplateInRepository(Enterprise enterprise,
                        com.google.common.base.Predicate<VirtualMachineTemplate> filter)
Retrieve the first virtual machine template within the list of templates of this datacenter
 from the given enterprise. 
 | 
Tier | 
findTier(com.google.common.base.Predicate<Tier> filter)
Retrieve the first tier matching the filter within the list of tiers in this datacenter. 
 | 
com.abiquo.model.enumerator.HypervisorType | 
getHypervisorType(String ip)
Retrieve the hypervisor type from remote machine. 
 | 
Integer | 
getId()  | 
String | 
getLocation()  | 
ManagedRack | 
getManagedRack(Integer id)
Retrieve a single managed rack. 
 | 
String | 
getName()  | 
Network<?> | 
getNetwork(Integer id)
Retrieve a single public, external or unmanaged network from this datacenter. 
 | 
Rack | 
getRack(Integer id)
Retrieve a single unmanaged rack. 
 | 
StorageDevice | 
getStorageDevice(Integer id)
Retrieve a single storage device. 
 | 
VirtualMachineTemplate | 
getTemplateInRepository(Enterprise enterprise,
                       Integer id)
Retrieve a single virtual machine template in of this datacenter from the given enterprise. 
 | 
String | 
getUUID()  | 
List<com.abiquo.model.enumerator.HypervisorType> | 
listAvailableHypervisors()
Retrieve the list of available hypervisor types in the datacenter. 
 | 
List<com.abiquo.model.enumerator.HypervisorType> | 
listAvailableHypervisors(com.google.common.base.Predicate<com.abiquo.model.enumerator.HypervisorType> filter)
Retrieve a filtered list of available hypervisor types in the datacenter. 
 | 
List<Limits> | 
listLimits()
Retrieve the list of datacenter limits by all enterprises. 
 | 
List<Limits> | 
listLimits(com.google.common.base.Predicate<Limits> filter)
Retrieve a filtered list of datacenter limits by enterprises. 
 | 
List<ManagedRack> | 
listManagedRacks()
Retrieve the list of managed racks in this datacenter. 
 | 
List<ManagedRack> | 
listManagedRacks(com.google.common.base.Predicate<ManagedRack> filter)
Retrieve a filtered list of managed racks in this datacenter. 
 | 
List<Network<?>> | 
listNetworks()
Retrieve the list of public, external and unmanaged networks in this datacenter. 
 | 
List<Network<?>> | 
listNetworks(com.abiquo.model.enumerator.NetworkType type)
Retrieve the list of networks of this datacenter matching the given type. 
 | 
List<Network<?>> | 
listNetworks(com.abiquo.model.enumerator.NetworkType type,
            com.google.common.base.Predicate<Network<?>> filter)
Retrieve a filtered list of networks of this datacenter matching the given type. 
 | 
List<Network<?>> | 
listNetworks(com.google.common.base.Predicate<Network<?>> filter)
Retrieve a filtered list of public, external and unmanaged networks in this datacenter. 
 | 
List<Rack> | 
listRacks()
Retrieve the list of unmanaged racks in this datacenter. 
 | 
List<Rack> | 
listRacks(com.google.common.base.Predicate<Rack> filter)
Retrieve a filtered list of unmanaged racks in this datacenter. 
 | 
List<RemoteService> | 
listRemoteServices()
Retrieve the list of remote services of this datacenter. 
 | 
List<RemoteService> | 
listRemoteServices(com.google.common.base.Predicate<RemoteService> filter)
Retrieve a filtered list of remote services of this datacenter. 
 | 
List<StorageDevice> | 
listStorageDevices()
Retrieve the list of storage devices in this datacenter. 
 | 
List<StorageDevice> | 
listStorageDevices(com.google.common.base.Predicate<StorageDevice> filter)
Retrieve a filtered list of storage devices in this datacenter. 
 | 
List<StorageDeviceMetadata> | 
listSupportedStorageDevices()
Retrieve the list of supported storage devices. 
 | 
List<StorageDeviceMetadata> | 
listSupportedStorageDevices(com.google.common.base.Predicate<StorageDeviceMetadata> filter)
Retrieve the list of supported storage devices matching the filter. 
 | 
List<VirtualMachineTemplate> | 
listTemplatesInRepository(Enterprise enterprise)
Retrieve the list of virtual machine templates in the repository of this datacenter. 
 | 
List<VirtualMachineTemplate> | 
listTemplatesInRepository(Enterprise enterprise,
                         com.google.common.base.Predicate<VirtualMachineTemplate> filter)
Retrieve a filtered list of virtual machine templates in the repository of this datacenter. 
 | 
List<Tier> | 
listTiers()
Retrieve the list of tiers in ths datacenter. 
 | 
List<Tier> | 
listTiers(com.google.common.base.Predicate<Tier> filter)
Retrieve a filtered list of tiers in this datacenter. 
 | 
void | 
save()
Create a datacenter in Abiquo. 
 | 
void | 
setLocation(String location)  | 
void | 
setName(String name)  | 
String | 
toString()  | 
void | 
update()
Update datacenter information in the server with the data from this datacenter. 
 | 
getParentId, getTask, getTasks, getURI, join, unwrap, unwrap, updateLink, wrap, wrapprotected Datacenter(RestContext<AbiquoApi,AbiquoAsyncApi> context, com.abiquo.server.core.infrastructure.DatacenterDto target)
public void delete()
public void save()
AbiquoEdition.public void update()
public com.abiquo.model.enumerator.VlanTagAvailabilityType checkTagAvailability(int tag)
 http://community.abiquo.com/display/ABI20/PublicNetworkResource#PublicNetworkResource-
      Checkthetagavailabilitypublic List<Rack> listRacks()
 http://community.abiquo.com/display/ABI20/RackResource#RackResource-
      RetrievealistofRackspublic List<Rack> listRacks(com.google.common.base.Predicate<Rack> filter)
filter - Filter to be applied to the list. http://community.abiquo.com/display/ABI20/RackResource#RackResource-
      RetrievealistofRackspublic Rack findRack(com.google.common.base.Predicate<Rack> filter)
filter - Filter to be applied to the list.null if the is none. http://community.abiquo.com/display/ABI20/RackResource#RackResource-
      RetrievealistofRackspublic Rack getRack(Integer id)
id - Unique ID of the rack in this datacenter.null if it does not exist.
      http://community.abiquo.com/display/ABI20/RackResource#RackResource-RetrieveaRackpublic List<ManagedRack> listManagedRacks()
 http://community.abiquo.com/display/ABI20/RackResource#RackResource-
      RetrievealistofUCSrackspublic List<ManagedRack> listManagedRacks(com.google.common.base.Predicate<ManagedRack> filter)
filter - Filter to be applied to the list. http://community.abiquo.com/display/ABI20/RackResource#RackResource-
      RetrievealistofUCSrackspublic ManagedRack findManagedRack(com.google.common.base.Predicate<ManagedRack> filter)
filter - Filter to be applied to the list.null if there is none. http://community.abiquo.com/display/ABI20/RackResource#RackResource-
      RetrievealistofUCSrackspublic ManagedRack getManagedRack(Integer id)
id - Unique ID of the rack in this datacenter.null if it does not exist.
      http://community.abiquo.com/display/ABI20/RackResource#RackResource-RetrieveaUCSRackpublic List<StorageDeviceMetadata> listSupportedStorageDevices()
This method will get the list of the storage devices that are supported in the datacenter.
public List<StorageDeviceMetadata> listSupportedStorageDevices(com.google.common.base.Predicate<StorageDeviceMetadata> filter)
This method will get the list of the storage devices that are supported in the datacenter.
filter - Filter to be applied to the list.public StorageDeviceMetadata findSupportedStorageDevice(com.google.common.base.Predicate<StorageDeviceMetadata> filter)
filter - Filter to be applied to the list.null if there is
         none.public List<StorageDevice> listStorageDevices()
 http://community.abiquo.com/display/ABI20/StorageDeviceResource#StorageDeviceResource-
      Retrievethelistofstoragedevicespublic List<StorageDevice> listStorageDevices(com.google.common.base.Predicate<StorageDevice> filter)
filter - Filter to be applied to the list. http://community.abiquo.com/display/ABI20/StorageDeviceResource#StorageDeviceResource-
      Retrievethelistofstoragedevicespublic StorageDevice findStorageDevice(com.google.common.base.Predicate<StorageDevice> filter)
filter - Filter to be applied to the list.null if there is none. http://community.abiquo.com/display/ABI20/StorageDeviceResource#StorageDeviceResource-
      Retrievethelistofstoragedevicespublic StorageDevice getStorageDevice(Integer id)
id - Unique ID of the storage device in this datacenter.null if it does not exist. http://community.abiquo.com/display/ABI20/StorageDeviceResource#StorageDeviceResource-
      Retrieveastoragedevicepublic List<RemoteService> listRemoteServices()
 http://community.abiquo.com/display/ABI20/RemoteServiceResource#RemoteServiceResource-
      RetrievealistofRemoteServicespublic List<RemoteService> listRemoteServices(com.google.common.base.Predicate<RemoteService> filter)
filter - Filter to be applied to the list. http://community.abiquo.com/display/ABI20/RemoteServiceResource#RemoteServiceResource-
      RetrievealistofRemoteServicespublic RemoteService findRemoteService(com.google.common.base.Predicate<RemoteService> filter)
filter - Filter to be applied to the list.null if there is none. http://community.abiquo.com/display/ABI20/RemoteServiceResource#RemoteServiceResource-
      RetrievealistofRemoteServicespublic List<Limits> listLimits()
 http://community.abiquo.com/display/ABI20/DatacenterResource#DatacenterResource-
      Retrievelimitsbydatacenterpublic List<Limits> listLimits(com.google.common.base.Predicate<Limits> filter)
filter - Filter to be applied to the list. http://community.abiquo.com/display/ABI20/DatacenterResource#DatacenterResource-
      Retrievelimitsbydatacenterpublic Limits findLimits(com.google.common.base.Predicate<Limits> filter)
filter - Filter to be applied to the list.null if there is none. http://community.abiquo.com/display/ABI20/DatacenterResource#DatacenterResource-
      Retrievelimitsbydatacenterpublic List<Tier> listTiers()
      http://community.abiquo.com/display/ABI20/TierResource#TierResource-Retrievethelistoftiers
      public List<Tier> listTiers(com.google.common.base.Predicate<Tier> filter)
filter - Filter to be applied to the list.
      http://community.abiquo.com/display/ABI20/TierResource#TierResource-Retrievethelistoftiers
      public Tier findTier(com.google.common.base.Predicate<Tier> filter)
filter - Filter to be applied to the list.null if there is none. http://community.abiquo.com/display/ABI20/StorageDeviceResource#StorageDeviceResource-
      Retrievethelistofstoragedevicespublic List<Network<?>> listNetworks()
 http://community.abiquo.com/display/ABI20/PublicNetworkResource#PublicNetworkResource-
      Getthelistofpublicnetworkspublic List<Network<?>> listNetworks(com.google.common.base.Predicate<Network<?>> filter)
filter - Filter to be applied to the list. http://community.abiquo.com/display/ABI20/PublicNetworkResource#PublicNetworkResource-
      Getthelistofpublicnetworkspublic Network<?> findNetwork(com.google.common.base.Predicate<Network<?>> filter)
filter - Filter to be applied to the list. http://community.abiquo.com/display/ABI20/PublicNetworkResource#PublicNetworkResource-
      Getthelistofpublicnetworkspublic List<Network<?>> listNetworks(com.abiquo.model.enumerator.NetworkType type)
type - Network type filter. http://community.abiquo.com/display/ABI20/PublicNetworkResource#PublicNetworkResource-
      Getthelistofpublicnetworkspublic List<Network<?>> listNetworks(com.abiquo.model.enumerator.NetworkType type, com.google.common.base.Predicate<Network<?>> filter)
type - Network type filter.filter - Filter to be applied to the list. http://community.abiquo.com/display/ABI20/PublicNetworkResource#PublicNetworkResource-
      Getthelistofpublicnetworkspublic Network<?> findNetwork(com.abiquo.model.enumerator.NetworkType type, com.google.common.base.Predicate<Network<?>> filter)
type - Network type filter.filter - Filter to be applied to the list.null if there is
         none. http://community.abiquo.com/display/ABI20/PublicNetworkResource#PublicNetworkResource-
      Getthelistofpublicnetworkspublic Network<?> getNetwork(Integer id)
Network.toExternalNetwork(),
 Network.toPublicNetwork() and
 Network.toUnmanagedNetwork() can be used to convert
 the Network into the appropiate domain object.id - Unique ID of the network in this datacenter.null if it does not exist. http://community.abiquo.com/display/ABI20/StorageDeviceResource#PublicNetworkResource#
      PublicNetworkResource-Getthelistofpublicnetworkspublic com.abiquo.model.enumerator.HypervisorType getHypervisorType(String ip)
ip - IP address of the physical machine.Exception - If the hypervisor type information cannot be retrieved.public List<com.abiquo.model.enumerator.HypervisorType> listAvailableHypervisors()
public List<com.abiquo.model.enumerator.HypervisorType> listAvailableHypervisors(com.google.common.base.Predicate<com.abiquo.model.enumerator.HypervisorType> filter)
public com.abiquo.model.enumerator.HypervisorType findHypervisor(com.google.common.base.Predicate<com.abiquo.model.enumerator.HypervisorType> filter)
filter - Filter to be applied to the list.null if there is none. http://community.abiquo.com/display/ABI20/DatacenterResource#DatacenterResource-
      Retrieveavailablehypervisortypespublic Machine discoverSingleMachine(String ip, com.abiquo.model.enumerator.HypervisorType hypervisorType, String user, String password)
ip - IP address of the remote hypervisor to connect.hypervisorType - Kind of hypervisor we want to connect. Valid values are {vbox, kvm,
            xen-3, vmx-04, hyperv-301, xenserver}.user - User to log in.password - Password to authenticate.null. http://community.abiquo.com/display/ABI20/DatacenterResource#DatacenterResource-
      Retrieveremotemachineinformationpublic Machine discoverSingleMachine(String ip, com.abiquo.model.enumerator.HypervisorType hypervisorType, String user, String password, int port)
ip - IP address of the remote hypervisor to connect.hypervisorType - Kind of hypervisor we want to connect. Valid values are {vbox, kvm,
            xen-3, vmx-04, hyperv-301, xenserver}.user - User to log in.password - Password to authenticate.port - Port to connect.null. http://community.abiquo.com/display/ABI20/DatacenterResource#DatacenterResource-
      Retrieveremotemachineinformationpublic List<Machine> discoverMultipleMachines(String ipFrom, String ipTo, com.abiquo.model.enumerator.HypervisorType hypervisorType, String user, String password)
ipFrom - IP address of the remote first hypervisor to check.ipTo - IP address of the remote last hypervisor to check.hypervisorType - Kind of hypervisor we want to connect. Valid values are {vbox, kvm,
            xen-3, vmx-04, hyperv-301, xenserver}.user - User to log in.password - Password to authenticate. http://community.abiquo.com/display/ABI20/DatacenterResource#DatacenterResource-
      Retrievealistofremotemachineinformationpublic List<Machine> discoverMultipleMachines(String ipFrom, String ipTo, com.abiquo.model.enumerator.HypervisorType hypervisorType, String user, String password, int port)
ipFrom - IP address of the remote first hypervisor to check.ipTo - IP address of the remote last hypervisor to check.hypervisorType - Kind of hypervisor we want to connect. Valid values are {vbox, kvm,
            xen-3, vmx-04, hyperv-301, xenserver}.user - User to log in.password - Password to authenticate.port - Port to connect. http://community.abiquo.com/display/ABI20/DatacenterResource#DatacenterResource-
      Retrievealistofremotemachineinformationpublic com.abiquo.model.enumerator.MachineState checkMachineState(String ip, com.abiquo.model.enumerator.HypervisorType hypervisorType, String user, String password)
ip - IP address of the remote hypervisor to connect.hypervisorType - Kind of hypervisor we want to connect. Valid values are {vbox, kvm,
            xen-3, vmx-04, hyperv-301, xenserver}.user - User to log in.password - Password to authenticate.null. http://community.abiquo.com/display/ABI20/DatacenterResource#DatacenterResource-
      Checkthestatefromremotemachinepublic com.abiquo.model.enumerator.MachineState checkMachineState(String ip, com.abiquo.model.enumerator.HypervisorType hypervisorType, String user, String password, MachineOptions options)
ip - IP address of the remote hypervisor to connect.hypervisorType - Kind of hypervisor we want to connect. Valid values are {vbox, kvm,
            xen-3, vmx-04, hyperv-301, xenserver}.user - User to log in.password - Password to authenticate.options. - null. http://community.abiquo.com/display/ABI20/DatacenterResource#DatacenterResource-
      Checkthestatefromremotemachinepublic com.abiquo.model.enumerator.MachineIpmiState checkMachineIpmiState(String ip, String user, String password)
ip - IP address of the remote hypervisor to connect.user - User to log in.password - Password to authenticate.null. http://community.abiquo.com/display/ABI20/DatacenterResource#DatacenterResource-
      Checktheipmistatefromremotemachinepublic com.abiquo.model.enumerator.MachineIpmiState checkMachineIpmiState(String ip, String user, String password, IpmiOptions options)
ip - IP address of the remote hypervisor to connect.user - User to log in.password - Password to authenticate.null. http://community.abiquo.com/display/ABI20/DatacenterResource#DatacenterResource-
      Checktheipmistatefromremotemachinepublic List<VirtualMachineTemplate> listTemplatesInRepository(Enterprise enterprise)
enterprise - Owner of the templates. http://community.abiquo.com/display/ABI20/VirtualMachineTemplateResource#
      VirtualMachineTemplateResource-Retrieveallvirtualmachinetemplatespublic List<VirtualMachineTemplate> listTemplatesInRepository(Enterprise enterprise, com.google.common.base.Predicate<VirtualMachineTemplate> filter)
enterprise - Owner of the templates.filter - Filter to be applied to the list. http://community.abiquo.com/display/ABI20/VirtualMachineTemplateResource#
      VirtualMachineTemplateResource-Retrieveallvirtualmachinetemplatespublic VirtualMachineTemplate findTemplateInRepository(Enterprise enterprise, com.google.common.base.Predicate<VirtualMachineTemplate> filter)
enterprise - Owner of the templates.filter - Filter to be applied to the list.null if there is
         none. http://community.abiquo.com/display/ABI20/VirtualMachineTemplateResource#
      VirtualMachineTemplateResource-Retrieveallvirtualmachinetemplatespublic VirtualMachineTemplate getTemplateInRepository(Enterprise enterprise, Integer id)
enterprise - Owner of the templates.id - Unique ID of the template in the datacenter repository for the given enterprise.null if it does not exist. http://community.abiquo.com/display/ABI20/VirtualMachineTemplateResource#
      VirtualMachineTemplateResource-Retrieveallvirtualmachinetemplatespublic static Datacenter.Builder builder(RestContext<AbiquoApi,AbiquoAsyncApi> context)
public Integer getId()
public String getLocation()
public String getName()
public void setLocation(String location)
public void setName(String name)
public String getUUID()
Copyright © 2009-2013 jclouds. All Rights Reserved.