org.dasein.cloud.vcloud.compute
Class vAppSupport
java.lang.Object
org.dasein.cloud.compute.AbstractVMSupport<vCloud>
org.dasein.cloud.vcloud.compute.vAppSupport
- All Implemented Interfaces:
- AccessControlledService, VirtualMachineSupport
public class vAppSupport
- extends AbstractVMSupport<vCloud>
Implements services for interacting with virtual machines in a vCloud environment. A Dasein Cloud virtual machine
maps to a VM running inside a vApp in vCloud.
Created by George Reese: 9/17/12 10:58 AM
- Since:
- 2013.04
- Version:
- 2013.07
- Author:
- George Reese, Erik Johnson, Tim Freeman
| Fields inherited from interface org.dasein.cloud.compute.VirtualMachineSupport |
ANY, BOOT, CLONE, CREATE_VM, GET_VM, LIST_VM, PAUSE, REBOOT, REMOVE_VM, TOGGLE_ANALYTICS, VIEW_ANALYTICS, VIEW_CONSOLE |
| Methods inherited from class org.dasein.cloud.compute.AbstractVMSupport |
alterVirtualMachine, cancelSpotDataFeedSubscription, cancelSpotVirtualMachineRequest, clone, createSpotVirtualMachineRequest, describeVerticalScalingCapabilities, disableAnalytics, enableAnalytics, enableSpotDataFeedSubscription, getConsoleOutput, getContext, getCostFactor, getMaximumVirtualMachineCount, getPassword, getProvider, getProviderTermForServer, getUserData, getVMProductsResource, getVMStatistics, getVMStatisticsForPeriod, getVMStatus, getVMStatus, identifyImageRequirement, identifyPasswordRequirement, identifyPasswordRequirement, identifyRootVolumeRequirement, identifyShellKeyRequirement, identifyShellKeyRequirement, identifyStaticIPRequirement, identifyVlanRequirement, isAPITerminationPreventable, isBasicAnalyticsSupported, isExtendedAnalyticsSupported, isUserDataSupported, launch, launch, launchAsync, launchMany, listProducts, listProducts, listSpotPriceHistories, listSpotVirtualMachineRequests, listVirtualMachines, listVirtualMachineStatus, mapServiceAction, modifyInstance, pause, removeTags, removeTags, stop, supportsAnalytics, supportsPauseUnpause, supportsStartStop, supportsSuspendResume, unpause, updateTags, updateTags |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PARENT_VAPP_ID
public static final String PARENT_VAPP_ID
- See Also:
- Constant Field Values
deploy
public void deploy(@Nonnull
String vmId)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
getCapabilities
@Nonnull
public VirtualMachineCapabilities getCapabilities()
throws InternalException,
CloudException
- Throws:
InternalException
CloudException
getProduct
@Nullable
public VirtualMachineProduct getProduct(@Nonnull
String productId)
throws InternalException,
CloudException
- Specified by:
getProduct in interface VirtualMachineSupport- Overrides:
getProduct in class AbstractVMSupport<vCloud>
- Throws:
InternalException
CloudException
getVirtualMachine
public VirtualMachine getVirtualMachine(@Nonnull
String vmId)
throws InternalException,
CloudException
- Specified by:
getVirtualMachine in interface VirtualMachineSupport- Overrides:
getVirtualMachine in class AbstractVMSupport<vCloud>
- Throws:
InternalException
CloudException
isSubscribed
public boolean isSubscribed()
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
launch
@Nonnull
public VirtualMachine launch(@Nonnull
VMLaunchOptions withLaunchOptions)
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
listFirewalls
@Nonnull
public Iterable<String> listFirewalls(@Nonnull
String vmId)
throws InternalException,
CloudException
- Specified by:
listFirewalls in interface VirtualMachineSupport- Overrides:
listFirewalls in class AbstractVMSupport<vCloud>
- Throws:
InternalException
CloudException
listProducts
@Nonnull
public Iterable<VirtualMachineProduct> listProducts(@Nonnull
Architecture architecture)
throws InternalException,
CloudException
- Specified by:
listProducts in interface VirtualMachineSupport- Overrides:
listProducts in class AbstractVMSupport<vCloud>
- Throws:
InternalException
CloudException
listSupportedArchitectures
public Iterable<Architecture> listSupportedArchitectures()
throws InternalException,
CloudException
- Specified by:
listSupportedArchitectures in interface VirtualMachineSupport- Overrides:
listSupportedArchitectures in class AbstractVMSupport<vCloud>
- Throws:
InternalException
CloudException
listVirtualMachines
@Nonnull
public Iterable<VirtualMachine> listVirtualMachines()
throws InternalException,
CloudException
- Specified by:
listVirtualMachines in interface VirtualMachineSupport- Overrides:
listVirtualMachines in class AbstractVMSupport<vCloud>
- Throws:
InternalException
CloudException
reboot
public void reboot(@Nonnull
String vmId)
throws CloudException,
InternalException
- Specified by:
reboot in interface VirtualMachineSupport- Overrides:
reboot in class AbstractVMSupport<vCloud>
- Throws:
CloudException
InternalException
resume
public void resume(@Nonnull
String vmId)
throws CloudException,
InternalException
- Specified by:
resume in interface VirtualMachineSupport- Overrides:
resume in class AbstractVMSupport<vCloud>
- Throws:
CloudException
InternalException
start
public void start(@Nonnull
String vmId)
throws CloudException,
InternalException
- Specified by:
start in interface VirtualMachineSupport- Overrides:
start in class AbstractVMSupport<vCloud>
- Throws:
CloudException
InternalException
stop
public void stop(@Nonnull
String vmId,
boolean force)
throws CloudException,
InternalException
- Specified by:
stop in interface VirtualMachineSupport- Overrides:
stop in class AbstractVMSupport<vCloud>
- Throws:
CloudException
InternalException
suspend
public void suspend(@Nonnull
String vmId)
throws CloudException,
InternalException
- Specified by:
suspend in interface VirtualMachineSupport- Overrides:
suspend in class AbstractVMSupport<vCloud>
- Throws:
CloudException
InternalException
terminate
public void terminate(@Nonnull
String vmId,
@Nullable
String explanation)
throws InternalException,
CloudException
- Throws:
InternalException
CloudException
terminate
public void terminate(@Nonnull
String vmId)
throws InternalException,
CloudException
- Specified by:
terminate in interface VirtualMachineSupport- Overrides:
terminate in class AbstractVMSupport<vCloud>
- Throws:
InternalException
CloudException
undeploy
public void undeploy(@Nonnull
String vmId)
throws CloudException,
InternalException
- Default undeploy (uses powerOff for UndeployPowerAction)
- Parameters:
vmId - VM or vApp ID
- Throws:
CloudException
InternalException
undeploy
public void undeploy(@Nonnull
String vmId,
String powerAction)
throws CloudException,
InternalException
- Default undeploy, uses supplied string for UndeployPowerAction
- Parameters:
vmId - VM or vApp IDpowerAction - UndeployPowerAction. If null, use default.
- Throws:
CloudException
InternalException
Copyright © 2014 Dell, Inc.. All Rights Reserved.