|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.vmware.vcloud.sdk.VcloudResource<T>
com.vmware.vcloud.sdk.VcloudEntity<com.vmware.vcloud.api.rest.schema.AbstractVAppType>
com.vmware.vcloud.sdk.AbstractVapp<T>
public abstract class AbstractVapp<T extends com.vmware.vcloud.api.rest.schema.AbstractVAppType>
Helper class to access the Abstract vApp Resource in vCLoud API. This is the base for the Vapp and VM helper classes.
AbstractVAppType| Method Summary | |
|---|---|
Task |
createSnapshot(String name,
String description,
boolean memory,
boolean quiesce)
Creates new snapshot of a virtual machine or of all the virtual machines in a vApp. |
static Task |
createSnapshot(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType ref,
String name,
String description,
boolean memory,
boolean quiesce)
Creates new snapshot of a virtual machine or of all the virtual machines in a vApp. |
Task |
delete()
Delete VAPP/VM . |
static Task |
delete(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType ref)
Delete VAPP/VM. |
Task |
deploy(boolean powerOn,
int lease,
boolean forceCustomization)
Deploy VAPP/VM . |
static Task |
deploy(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType ref,
boolean powerOn,
int lease,
boolean forceCustomization)
Deploy VAPP/VM. |
Task |
discardSuspend()
Discard the Suspended State of a vApp or Virtual Machine |
static Task |
discardSuspend(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType ref)
Discard the Suspended State of a vApp or Virtual Machine |
List<com.vmware.vcloud.api.rest.schema.ovf.ProductSectionType> |
getProductSections()
Returns the ProductSections of a vApp/VM |
static List<com.vmware.vcloud.api.rest.schema.ovf.ProductSectionType> |
getProductSections(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType ref)
Returns the ProductSections for the vApp/VM |
T |
getResource()
Returns the abstract vapp type resource. |
com.vmware.vcloud.api.rest.schema.SnapshotSectionType |
getSnapshotSection()
Returns the SnapshotSection for the given vapp |
static com.vmware.vcloud.api.rest.schema.SnapshotSectionType |
getSnapshotSection(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vappRef)
Returns the SnapshotSection |
Boolean |
isDeployed()
Returns whether the vApp or VM is deployed |
Task |
powerOff()
Power off VAPP/VM. |
static Task |
powerOff(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType ref)
Power off VAPP/VM. |
Task |
powerOn()
Power on VAPP/VM. |
static Task |
powerOn(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType ref)
Power on VAPP/VM. |
Task |
reboot()
Reboot VAPP/VM |
static Task |
reboot(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType ref)
Reboot VAPP/VM |
Task |
removeAllSnapshots()
Removes all user created snapshots for a vApp or virtual machine. |
static Task |
removeAllSnapshots(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType ref)
Removes all user created snapshots for a vApp or virtual machine. |
Task |
reset()
Reset VAPP/VM. |
static Task |
reset(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType ref)
Reset VAPP/VM. |
Task |
revertToCurrentSnapshot()
Reverts a vApp or virtual machine to the current snapshot, if any. |
static Task |
revertToCurrentSnapshot(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType ref)
Reverts a vApp or virtual machine to the current snapshot, if any. |
Task |
shutdown()
Shutdown VAPP/VM gracefully. |
static Task |
shutdown(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType ref)
Shutdown VAPP/VM gracefully. |
Task |
suspend()
Suspend VAPP/VM. |
static Task |
suspend(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType ref)
Suspend VAPP/VM. |
Task |
undeploy(UndeployPowerActionType undeployPowerAction)
Undeploys the vApp/VM |
static Task |
undeploy(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType ref,
UndeployPowerActionType undeployPowerAction)
Undeploys the vApp/VM |
Task |
updateProductSections(List<com.vmware.vcloud.api.rest.schema.ovf.ProductSectionType> productSections)
Update the product sections of a vApp/VM |
| Methods inherited from class com.vmware.vcloud.sdk.VcloudEntity |
|---|
getMetadata, getReference, getTasks |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public T getResource()
VmType or VAppType
getResource in class VcloudResource<com.vmware.vcloud.api.rest.schema.AbstractVAppType>ResourceTypepublic Boolean isDeployed()
Boolean
public List<com.vmware.vcloud.api.rest.schema.ovf.ProductSectionType> getProductSections()
throws VCloudException
List<ProductSectionType>
VCloudException
public static List<com.vmware.vcloud.api.rest.schema.ovf.ProductSectionType> getProductSections(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType ref)
throws VCloudException
client - VcloudClientref - ReferenceType
List<ProductSectionType>
VCloudException
public com.vmware.vcloud.api.rest.schema.SnapshotSectionType getSnapshotSection()
throws VCloudException
SnapshotSectionType
VCloudException
public static com.vmware.vcloud.api.rest.schema.SnapshotSectionType getSnapshotSection(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType vappRef)
throws VCloudException
client - vappRef -
SnapshotSectionType
VCloudException
public Task updateProductSections(List<com.vmware.vcloud.api.rest.schema.ovf.ProductSectionType> productSections)
throws VCloudException
productSections - List<ProductSectionType>
Task
VCloudException
public Task deploy(boolean powerOn,
int lease,
boolean forceCustomization)
throws VCloudException
powerOn - True if the vApp/VM should be powered on after deploymentlease - Duration of the deployment lease, in secondsforceCustomization - True if the vApp/VM should be customized after deployment
Task
VCloudException
public static Task deploy(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType ref,
boolean powerOn,
int lease,
boolean forceCustomization)
throws VCloudException
client - vCloud Client VcloudClientref - ReferenceType to the vApp/VMpowerOn - True if the vApp/VM should be powered on after deploymentlease - Duration of the deployment lease, in secondsforceCustomization - True if the vApp/VM should be customized after deployment
Task
VCloudException
public Task undeploy(UndeployPowerActionType undeployPowerAction)
throws VCloudException
undeployPowerAction - UndeployPowerActionType
Task
VCloudException
public static Task undeploy(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType ref,
UndeployPowerActionType undeployPowerAction)
throws VCloudException
client - - VcloudClientref - - ReferenceType vApp/VM ReferenceTypeundeployPowerAction - UndeployPowerActionType
Task
VCloudException
public Task powerOn()
throws VCloudException
Task
VCloudException
public static Task powerOn(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType ref)
throws VCloudException
client - vCloud Client VcloudClientref - VAPP/VM Ref
Task
VCloudException
public Task powerOff()
throws VCloudException
Task
VCloudException
public static Task powerOff(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType ref)
throws VCloudException
client - vCloud Client VcloudClientref - VAPP/VM Ref
Task
VCloudException
public Task reset()
throws VCloudException
Task
VCloudException
public static Task reset(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType ref)
throws VCloudException
client - vCloud Client VcloudClientref - VAPP/VM Ref
Task
VCloudException
public Task suspend()
throws VCloudException
Task
VCloudException
public static Task suspend(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType ref)
throws VCloudException
client - vCloud Client VcloudClientref - VAPP/VM Ref
Task
VCloudException
public Task discardSuspend()
throws VCloudException
Task
VCloudException
public static Task discardSuspend(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType ref)
throws VCloudException
client - vCloud Client VcloudClientref - VAPP/VM Ref
Task
VCloudException
public Task shutdown()
throws VCloudException
Task
VCloudException
public static Task shutdown(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType ref)
throws VCloudException
client - vCloud Client VcloudClientref - VAPP/VM Ref
Task
VCloudException
public Task reboot()
throws VCloudException
Task
VCloudException
public static Task reboot(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType ref)
throws VCloudException
client - vCloud Client VcloudClientref - VAPP/VM Ref
Task
VCloudException
public Task removeAllSnapshots()
throws VCloudException
Task
VCloudException
public static Task removeAllSnapshots(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType ref)
throws VCloudException
client - ref -
Task
VCloudException
public Task revertToCurrentSnapshot()
throws VCloudException
Task
VCloudException
public static Task revertToCurrentSnapshot(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType ref)
throws VCloudException
client - ref -
Task
VCloudException
public Task createSnapshot(String name,
String description,
boolean memory,
boolean quiesce)
throws VCloudException
name - description - memory - - Whether to include a dump of the internal state of the virtual machine
(basically a memory dump) in the snapshot.quiesce - - Whether to include a dump of the internal state of the virtual machine
(basically a memory dump) in the snapshot.
Task
VCloudException
public static Task createSnapshot(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType ref,
String name,
String description,
boolean memory,
boolean quiesce)
throws VCloudException
client - ref - name - description - memory - - Whether to include a dump of the internal state of the virtual machine
(basically a memory dump) in the snapshot.quiesce - - Whether to include a dump of the internal state of the virtual machine
(basically a memory dump) in the snapshot.
Task
VCloudException
public static Task delete(VcloudClient client,
com.vmware.vcloud.api.rest.schema.ReferenceType ref)
throws VCloudException
client - vCloud Client VcloudClientref - VAPP/VM Ref
Task
VCloudException
public Task delete()
throws VCloudException
Task
VCloudException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||