org.jclouds.vcloud.domain.internal
Class VDCImpl

java.lang.Object
  extended by org.jclouds.vcloud.domain.internal.ReferenceTypeImpl
      extended by org.jclouds.vcloud.domain.internal.VDCImpl
All Implemented Interfaces:
Comparable<ReferenceType>, ReferenceType, VDC

public class VDCImpl
extends ReferenceTypeImpl
implements VDC

Locations of resources in vCloud

Author:
Adrian Cole

Constructor Summary
VDCImpl(String name, String type, URI id, VDCStatus status, ReferenceType org, String description, Iterable<Task> tasks, AllocationModel allocationModel, Capacity storageCapacity, Capacity cpuCapacity, Capacity memoryCapacity, Map<String,ReferenceType> resourceEntities, Map<String,ReferenceType> availableNetworks, int nicQuota, int networkQuota, int vmQuota, boolean isEnabled)
           
 
Method Summary
 boolean equals(Object obj)
           
 AllocationModel getAllocationModel()
          defines how resources are allocated by the vDC.
 Map<String,ReferenceType> getAvailableNetworks()
          container for OrgNetwork elements that represent organization networks contained by the vDC
 Capacity getCpuCapacity()
          reports CPU resource consumption in a vDC
 String getDescription()
          optional description
 Capacity getMemoryCapacity()
          reports memory resource consumption in a vDC
 int getNetworkQuota()
          maximum number of OrgNetwork objects that can be deployed in this vDC.
 int getNicQuota()
          maximum number of virtual NICs allowed in this vDC.
 ReferenceType getOrg()
          Reference to the org containing this vDC.
 Map<String,ReferenceType> getResourceEntities()
          container for ResourceEntity elements
 VDCStatus getStatus()
          The creation status of the vDC
 Capacity getStorageCapacity()
          defines the storage capacity available in the vDC
 List<Task> getTasks()
          read‐only container for Task elements.
 int getVmQuota()
          maximum number of virtual machines that can be deployed in this vDC.
 int hashCode()
           
 boolean isEnabled()
          true if this vDC is enabled
 String toString()
           
 
Methods inherited from class org.jclouds.vcloud.domain.internal.ReferenceTypeImpl
compareTo, getHref, getName, getType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jclouds.vcloud.domain.ReferenceType
getHref, getName, getType
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

VDCImpl

public VDCImpl(String name,
               String type,
               URI id,
               VDCStatus status,
               ReferenceType org,
               @Nullable
               String description,
               Iterable<Task> tasks,
               AllocationModel allocationModel,
               @Nullable
               Capacity storageCapacity,
               @Nullable
               Capacity cpuCapacity,
               @Nullable
               Capacity memoryCapacity,
               Map<String,ReferenceType> resourceEntities,
               Map<String,ReferenceType> availableNetworks,
               int nicQuota,
               int networkQuota,
               int vmQuota,
               boolean isEnabled)
Method Detail

getStatus

public VDCStatus getStatus()
The creation status of the vDC

Specified by:
getStatus in interface VDC

getOrg

public ReferenceType getOrg()
Reference to the org containing this vDC.

Specified by:
getOrg in interface VDC
Returns:
org, or null if this is a version before 1.0 where the org isn't present

getDescription

public String getDescription()
optional description

Specified by:
getDescription in interface VDC

getTasks

public List<Task> getTasks()
read‐only container for Task elements. Each element in the container represents a queued, running, or failed task owned by this object.

Specified by:
getTasks in interface VDC

getAllocationModel

public AllocationModel getAllocationModel()
defines how resources are allocated by the vDC. The value of this element is set by the administrator who created the vDC. It is read‐only to users.

Specified by:
getAllocationModel in interface VDC

getStorageCapacity

public Capacity getStorageCapacity()
defines the storage capacity available in the vDC

Specified by:
getStorageCapacity in interface VDC
Returns:
null if the provider doesn't support storage capacity

getCpuCapacity

public Capacity getCpuCapacity()
reports CPU resource consumption in a vDC

Specified by:
getCpuCapacity in interface VDC
Returns:
null if the provider doesn't support cpu capacity

getMemoryCapacity

public Capacity getMemoryCapacity()
reports memory resource consumption in a vDC

Specified by:
getMemoryCapacity in interface VDC
Returns:
null if the provider doesn't support memory capacity

getResourceEntities

public Map<String,ReferenceType> getResourceEntities()
container for ResourceEntity elements

Specified by:
getResourceEntities in interface VDC

getAvailableNetworks

public Map<String,ReferenceType> getAvailableNetworks()
container for OrgNetwork elements that represent organization networks contained by the vDC

Specified by:
getAvailableNetworks in interface VDC

getNicQuota

public int getNicQuota()
maximum number of virtual NICs allowed in this vDC. Defaults to 0, which specifies an unlimited number.

Specified by:
getNicQuota in interface VDC

getNetworkQuota

public int getNetworkQuota()
maximum number of OrgNetwork objects that can be deployed in this vDC. Defaults to 0, which specifies an unlimited number.

Specified by:
getNetworkQuota in interface VDC

getVmQuota

public int getVmQuota()
maximum number of virtual machines that can be deployed in this vDC. Defaults to 0, which specifies an unlimited number.

Specified by:
getVmQuota in interface VDC

isEnabled

public boolean isEnabled()
true if this vDC is enabled

Specified by:
isEnabled in interface VDC

hashCode

public int hashCode()
Overrides:
hashCode in class ReferenceTypeImpl

equals

public boolean equals(Object obj)
Overrides:
equals in class ReferenceTypeImpl

toString

public String toString()
Overrides:
toString in class ReferenceTypeImpl


Copyright © 2009-2011 jclouds. All Rights Reserved.