org.jclouds.vcloud.domain.internal
Class VAppImpl

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

public class VAppImpl
extends ReferenceTypeImpl
implements VApp

Locations of resources in vCloud

Author:
Adrian Cole

Constructor Summary
VAppImpl(String name, String type, URI id, Status status, ReferenceType vdc, String description, Iterable<Task> tasks, boolean ovfDescriptorUploaded, Iterable<? extends Vm> children)
           
 
Method Summary
 boolean equals(Object obj)
           
 Set<? extends Vm> getChildren()
          container for Vm elements representing virtual machines
 String getDescription()
          optional description
 Status getStatus()
          The creation status of the vDC
 List<Task> getTasks()
          read‐only container for Task elements.
 ReferenceType getVDC()
          Reference to the vdc containing this vApp.
 int hashCode()
           
 boolean isOvfDescriptorUploaded()
          
 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

VAppImpl

public VAppImpl(String name,
                String type,
                URI id,
                Status status,
                ReferenceType vdc,
                @Nullable
                String description,
                Iterable<Task> tasks,
                boolean ovfDescriptorUploaded,
                Iterable<? extends Vm> children)
Method Detail

getStatus

public Status getStatus()
The creation status of the vDC

Specified by:
getStatus in interface VApp

getVDC

public ReferenceType getVDC()
Reference to the vdc containing this vApp.

Specified by:
getVDC in interface VApp
Returns:
vdc, 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 VApp

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 VApp

isOvfDescriptorUploaded

public boolean isOvfDescriptorUploaded()

Specified by:
isOvfDescriptorUploaded in interface VApp
Returns:
true if the OVF descriptor for the template has been uploaded to the containing vDC.

getChildren

public Set<? extends Vm> getChildren()
container for Vm elements representing virtual machines

Specified by:
getChildren in interface VApp

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.