org.dasein.cloud.vcloud.compute
Class vAppSupport

java.lang.Object
  extended by org.dasein.cloud.compute.AbstractVMSupport<vCloud>
      extended by 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

Field Summary
static String PARENT_VAPP_ID
           
 
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
 
Method Summary
 void deploy(String vmId)
           
 VirtualMachineCapabilities getCapabilities()
           
 VirtualMachineProduct getProduct(String productId)
           
 VirtualMachine getVirtualMachine(String vmId)
           
 boolean isSubscribed()
           
 VirtualMachine launch(VMLaunchOptions withLaunchOptions)
           
 Iterable<String> listFirewalls(String vmId)
           
 Iterable<VirtualMachineProduct> listProducts(Architecture architecture)
           
 Iterable<Architecture> listSupportedArchitectures()
           
 Iterable<VirtualMachine> listVirtualMachines()
           
 void reboot(String vmId)
           
 void resume(String vmId)
           
 void start(String vmId)
           
 void stop(String vmId, boolean force)
           
 void suspend(String vmId)
           
 void terminate(String vmId)
           
 void terminate(String vmId, String explanation)
           
 void undeploy(String vmId)
          Default undeploy (uses powerOff for UndeployPowerAction)
 void undeploy(String vmId, String powerAction)
          Default undeploy, uses supplied string for UndeployPowerAction
 
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
 

Field Detail

PARENT_VAPP_ID

public static final String PARENT_VAPP_ID
See Also:
Constant Field Values
Method Detail

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 ID
powerAction - UndeployPowerAction. If null, use default.
Throws:
CloudException
InternalException


Copyright © 2014 Dell, Inc.. All Rights Reserved.