org.dasein.cloud.vcloud.compute
Class vAppSupport

java.lang.Object
  extended by org.dasein.cloud.vcloud.compute.DefunctVM
      extended by org.dasein.cloud.vcloud.compute.vAppSupport
All Implemented Interfaces:
AccessControlledService, VirtualMachineSupport

public class vAppSupport
extends DefunctVM

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.04 initial version
Author:
George Reese

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)
           
 int getCostFactor(VmState state)
           
 int getMaximumVirtualMachineCount()
           
 VirtualMachineProduct getProduct(String productId)
           
 String getProviderTermForServer(Locale locale)
           
 VirtualMachine getVirtualMachine(String vmId)
           
 Requirement identifyImageRequirement(ImageClass cls)
           
 Requirement identifyPasswordRequirement(Platform platform)
           
 Requirement identifyRootVolumeRequirement()
           
 Requirement identifyShellKeyRequirement(Platform platform)
           
 Requirement identifyStaticIPRequirement()
           
 Requirement identifyVlanRequirement()
           
 boolean isAPITerminationPreventable()
           
 boolean isPublicIpAddress(RawAddress addr)
           
 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 stop(String vmId, boolean force, boolean wait)
           
 boolean supportsStartStop(VirtualMachine vm)
           
 boolean supportsSuspendResume(VirtualMachine vm)
           
 void suspend(String vmId)
           
 void terminate(String vmId)
           
 void undeploy(String vmId)
           
 
Methods inherited from class org.dasein.cloud.vcloud.compute.DefunctVM
alterVirtualMachine, clone, describeVerticalScalingCapabilities, disableAnalytics, enableAnalytics, getConsoleOutput, getContext, getProvider, getVMStatistics, getVMStatisticsForPeriod, identifyPasswordRequirement, identifyShellKeyRequirement, isBasicAnalyticsSupported, isExtendedAnalyticsSupported, isUserDataSupported, launch, launch, listVirtualMachineStatus, mapServiceAction, pause, stop, supportsAnalytics, supportsPauseUnpause, unpause, 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

getCostFactor

public int getCostFactor(@Nonnull
                         VmState state)
                  throws InternalException,
                         CloudException
Specified by:
getCostFactor in interface VirtualMachineSupport
Overrides:
getCostFactor in class DefunctVM
Throws:
InternalException
CloudException

getMaximumVirtualMachineCount

public int getMaximumVirtualMachineCount()
                                  throws CloudException,
                                         InternalException
Specified by:
getMaximumVirtualMachineCount in interface VirtualMachineSupport
Overrides:
getMaximumVirtualMachineCount in class DefunctVM
Throws:
CloudException
InternalException

getProduct

@Nullable
public VirtualMachineProduct getProduct(@Nonnull
                                                 String productId)
                                 throws InternalException,
                                        CloudException
Specified by:
getProduct in interface VirtualMachineSupport
Overrides:
getProduct in class DefunctVM
Throws:
InternalException
CloudException

getProviderTermForServer

@Nonnull
public String getProviderTermForServer(@Nonnull
                                               Locale locale)

getVirtualMachine

public VirtualMachine getVirtualMachine(@Nonnull
                                        String vmId)
                                 throws InternalException,
                                        CloudException
Specified by:
getVirtualMachine in interface VirtualMachineSupport
Overrides:
getVirtualMachine in class DefunctVM
Throws:
InternalException
CloudException

identifyImageRequirement

@Nonnull
public Requirement identifyImageRequirement(@Nonnull
                                                    ImageClass cls)
                                     throws CloudException,
                                            InternalException
Specified by:
identifyImageRequirement in interface VirtualMachineSupport
Overrides:
identifyImageRequirement in class DefunctVM
Throws:
CloudException
InternalException

identifyPasswordRequirement

@Nonnull
public Requirement identifyPasswordRequirement(Platform platform)
                                        throws CloudException,
                                               InternalException
Specified by:
identifyPasswordRequirement in interface VirtualMachineSupport
Overrides:
identifyPasswordRequirement in class DefunctVM
Throws:
CloudException
InternalException

identifyRootVolumeRequirement

@Nonnull
public Requirement identifyRootVolumeRequirement()
                                          throws CloudException,
                                                 InternalException
Specified by:
identifyRootVolumeRequirement in interface VirtualMachineSupport
Overrides:
identifyRootVolumeRequirement in class DefunctVM
Throws:
CloudException
InternalException

identifyShellKeyRequirement

@Nonnull
public Requirement identifyShellKeyRequirement(Platform platform)
                                        throws CloudException,
                                               InternalException
Specified by:
identifyShellKeyRequirement in interface VirtualMachineSupport
Overrides:
identifyShellKeyRequirement in class DefunctVM
Throws:
CloudException
InternalException

identifyStaticIPRequirement

@Nonnull
public Requirement identifyStaticIPRequirement()
                                        throws CloudException,
                                               InternalException
Specified by:
identifyStaticIPRequirement in interface VirtualMachineSupport
Overrides:
identifyStaticIPRequirement in class DefunctVM
Throws:
CloudException
InternalException

identifyVlanRequirement

@Nonnull
public Requirement identifyVlanRequirement()
                                    throws CloudException,
                                           InternalException
Specified by:
identifyVlanRequirement in interface VirtualMachineSupport
Overrides:
identifyVlanRequirement in class DefunctVM
Throws:
CloudException
InternalException

isAPITerminationPreventable

public boolean isAPITerminationPreventable()
                                    throws CloudException,
                                           InternalException
Specified by:
isAPITerminationPreventable in interface VirtualMachineSupport
Overrides:
isAPITerminationPreventable in class DefunctVM
Throws:
CloudException
InternalException

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 DefunctVM
Throws:
InternalException
CloudException

listProducts

public Iterable<VirtualMachineProduct> listProducts(Architecture architecture)
                                             throws InternalException,
                                                    CloudException
Throws:
InternalException
CloudException

listSupportedArchitectures

public Iterable<Architecture> listSupportedArchitectures()
                                                  throws InternalException,
                                                         CloudException
Specified by:
listSupportedArchitectures in interface VirtualMachineSupport
Overrides:
listSupportedArchitectures in class DefunctVM
Throws:
InternalException
CloudException

listVirtualMachines

@Nonnull
public Iterable<VirtualMachine> listVirtualMachines()
                                             throws InternalException,
                                                    CloudException
Specified by:
listVirtualMachines in interface VirtualMachineSupport
Overrides:
listVirtualMachines in class DefunctVM
Throws:
InternalException
CloudException

reboot

public void reboot(@Nonnull
                   String vmId)
            throws CloudException,
                   InternalException
Specified by:
reboot in interface VirtualMachineSupport
Overrides:
reboot in class DefunctVM
Throws:
CloudException
InternalException

resume

public void resume(@Nonnull
                   String vmId)
            throws CloudException,
                   InternalException
Specified by:
resume in interface VirtualMachineSupport
Overrides:
resume in class DefunctVM
Throws:
CloudException
InternalException

start

public void start(@Nonnull
                  String vmId)
           throws CloudException,
                  InternalException
Specified by:
start in interface VirtualMachineSupport
Overrides:
start in class DefunctVM
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 DefunctVM
Throws:
CloudException
InternalException

stop

public void stop(@Nonnull
                 String vmId,
                 boolean force,
                 boolean wait)
          throws CloudException,
                 InternalException
Throws:
CloudException
InternalException

supportsStartStop

public boolean supportsStartStop(@Nonnull
                                 VirtualMachine vm)
Specified by:
supportsStartStop in interface VirtualMachineSupport
Overrides:
supportsStartStop in class DefunctVM

supportsSuspendResume

public boolean supportsSuspendResume(@Nonnull
                                     VirtualMachine vm)
Specified by:
supportsSuspendResume in interface VirtualMachineSupport
Overrides:
supportsSuspendResume in class DefunctVM

suspend

public void suspend(@Nonnull
                    String vmId)
             throws CloudException,
                    InternalException
Specified by:
suspend in interface VirtualMachineSupport
Overrides:
suspend in class DefunctVM
Throws:
CloudException
InternalException

terminate

public void terminate(@Nonnull
                      String vmId)
               throws InternalException,
                      CloudException
Throws:
InternalException
CloudException

undeploy

public void undeploy(@Nonnull
                     String vmId)
              throws CloudException,
                     InternalException
Throws:
CloudException
InternalException

isPublicIpAddress

public boolean isPublicIpAddress(RawAddress addr)


Copyright © 2013 enStratus Networks Inc. All Rights Reserved.