org.dasein.cloud.vsphere.compute
Class VMCapabilities

java.lang.Object
  extended by org.dasein.cloud.AbstractCapabilities<PrivateCloud>
      extended by org.dasein.cloud.vsphere.compute.VMCapabilities
All Implemented Interfaces:
Capabilities, VirtualMachineCapabilities

public class VMCapabilities
extends AbstractCapabilities<PrivateCloud>
implements VirtualMachineCapabilities

Describes the capabilities of VSphere with respect to Dasein virtual machine operations.

Created by Danielle Mayne: 4/03/14 15:27 PM

Since:
2014.03
Version:
2014.03 initial version
Author:
Danielle Mayne

Field Summary
 
Fields inherited from interface org.dasein.cloud.Capabilities
LIMIT_UNKNOWN, LIMIT_UNLIMITED
 
Constructor Summary
VMCapabilities(PrivateCloud provider)
           
 
Method Summary
 boolean canAlter(VmState fromState)
           
 boolean canClone(VmState fromState)
           
 boolean canPause(VmState fromState)
           
 boolean canReboot(VmState fromState)
           
 boolean canResume(VmState fromState)
           
 boolean canStart(VmState fromState)
           
 boolean canStop(VmState fromState)
           
 boolean canSuspend(VmState fromState)
           
 boolean canTerminate(VmState fromState)
           
 boolean canUnpause(VmState fromState)
           
 int getCostFactor(VmState state)
           
 int getMaximumVirtualMachineCount()
           
 String getProviderTermForVirtualMachine(Locale locale)
           
 VMScalingCapabilities getVerticalScalingCapabilities()
           
 NamingConstraints getVirtualMachineNamingConstraints()
           
 Requirement identifyDataCenterLaunchRequirement()
           
 Requirement identifyImageRequirement(ImageClass cls)
           
 Requirement identifyPasswordRequirement(Platform platform)
           
 Requirement identifyRootVolumeRequirement()
           
 Requirement identifyShellKeyRequirement(Platform platform)
           
 Requirement identifyStaticIPRequirement()
           
 Requirement identifySubnetRequirement()
           
 Requirement identifyVlanRequirement()
           
 boolean isAPITerminationPreventable()
           
 boolean isBasicAnalyticsSupported()
           
 boolean isExtendedAnalyticsSupported()
           
 boolean isUserDataSupported()
           
 Iterable<Architecture> listSupportedArchitectures()
           
 
Methods inherited from class org.dasein.cloud.AbstractCapabilities
getAccountNumber, getContext, getProvider, getRegionId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.dasein.cloud.Capabilities
getAccountNumber, getRegionId
 

Constructor Detail

VMCapabilities

public VMCapabilities(@Nonnull
                      PrivateCloud provider)
Method Detail

canAlter

public boolean canAlter(@Nonnull
                        VmState fromState)
                 throws CloudException,
                        InternalException
Specified by:
canAlter in interface VirtualMachineCapabilities
Throws:
CloudException
InternalException

canClone

public boolean canClone(@Nonnull
                        VmState fromState)
                 throws CloudException,
                        InternalException
Specified by:
canClone in interface VirtualMachineCapabilities
Throws:
CloudException
InternalException

canPause

public boolean canPause(@Nonnull
                        VmState fromState)
                 throws CloudException,
                        InternalException
Specified by:
canPause in interface VirtualMachineCapabilities
Throws:
CloudException
InternalException

canReboot

public boolean canReboot(@Nonnull
                         VmState fromState)
                  throws CloudException,
                         InternalException
Specified by:
canReboot in interface VirtualMachineCapabilities
Throws:
CloudException
InternalException

canResume

public boolean canResume(@Nonnull
                         VmState fromState)
                  throws CloudException,
                         InternalException
Specified by:
canResume in interface VirtualMachineCapabilities
Throws:
CloudException
InternalException

canStart

public boolean canStart(@Nonnull
                        VmState fromState)
                 throws CloudException,
                        InternalException
Specified by:
canStart in interface VirtualMachineCapabilities
Throws:
CloudException
InternalException

canStop

public boolean canStop(@Nonnull
                       VmState fromState)
                throws CloudException,
                       InternalException
Specified by:
canStop in interface VirtualMachineCapabilities
Throws:
CloudException
InternalException

canSuspend

public boolean canSuspend(@Nonnull
                          VmState fromState)
                   throws CloudException,
                          InternalException
Specified by:
canSuspend in interface VirtualMachineCapabilities
Throws:
CloudException
InternalException

canTerminate

public boolean canTerminate(@Nonnull
                            VmState fromState)
                     throws CloudException,
                            InternalException
Specified by:
canTerminate in interface VirtualMachineCapabilities
Throws:
CloudException
InternalException

canUnpause

public boolean canUnpause(@Nonnull
                          VmState fromState)
                   throws CloudException,
                          InternalException
Specified by:
canUnpause in interface VirtualMachineCapabilities
Throws:
CloudException
InternalException

getMaximumVirtualMachineCount

public int getMaximumVirtualMachineCount()
                                  throws CloudException,
                                         InternalException
Specified by:
getMaximumVirtualMachineCount in interface VirtualMachineCapabilities
Throws:
CloudException
InternalException

getCostFactor

public int getCostFactor(@Nonnull
                         VmState state)
                  throws CloudException,
                         InternalException
Specified by:
getCostFactor in interface VirtualMachineCapabilities
Throws:
CloudException
InternalException

getProviderTermForVirtualMachine

@Nonnull
public String getProviderTermForVirtualMachine(@Nonnull
                                                       Locale locale)
                                        throws CloudException,
                                               InternalException
Specified by:
getProviderTermForVirtualMachine in interface VirtualMachineCapabilities
Throws:
CloudException
InternalException

getVerticalScalingCapabilities

@Nullable
public VMScalingCapabilities getVerticalScalingCapabilities()
                                                     throws CloudException,
                                                            InternalException
Specified by:
getVerticalScalingCapabilities in interface VirtualMachineCapabilities
Throws:
CloudException
InternalException

getVirtualMachineNamingConstraints

@Nonnull
public NamingConstraints getVirtualMachineNamingConstraints()
                                                     throws CloudException,
                                                            InternalException
Specified by:
getVirtualMachineNamingConstraints in interface VirtualMachineCapabilities
Throws:
CloudException
InternalException

identifyDataCenterLaunchRequirement

@Nonnull
public Requirement identifyDataCenterLaunchRequirement()
                                                throws CloudException,
                                                       InternalException
Specified by:
identifyDataCenterLaunchRequirement in interface VirtualMachineCapabilities
Throws:
CloudException
InternalException

identifyImageRequirement

@Nonnull
public Requirement identifyImageRequirement(@Nonnull
                                                    ImageClass cls)
                                     throws CloudException,
                                            InternalException
Specified by:
identifyImageRequirement in interface VirtualMachineCapabilities
Throws:
CloudException
InternalException

identifyPasswordRequirement

@Nonnull
public Requirement identifyPasswordRequirement(Platform platform)
                                        throws CloudException,
                                               InternalException
Specified by:
identifyPasswordRequirement in interface VirtualMachineCapabilities
Throws:
CloudException
InternalException

identifyRootVolumeRequirement

@Nonnull
public Requirement identifyRootVolumeRequirement()
                                          throws CloudException,
                                                 InternalException
Specified by:
identifyRootVolumeRequirement in interface VirtualMachineCapabilities
Throws:
CloudException
InternalException

identifyShellKeyRequirement

@Nonnull
public Requirement identifyShellKeyRequirement(Platform platform)
                                        throws CloudException,
                                               InternalException
Specified by:
identifyShellKeyRequirement in interface VirtualMachineCapabilities
Throws:
CloudException
InternalException

identifyStaticIPRequirement

@Nonnull
public Requirement identifyStaticIPRequirement()
                                        throws CloudException,
                                               InternalException
Specified by:
identifyStaticIPRequirement in interface VirtualMachineCapabilities
Throws:
CloudException
InternalException

identifySubnetRequirement

@Nonnull
public Requirement identifySubnetRequirement()
                                      throws CloudException,
                                             InternalException
Specified by:
identifySubnetRequirement in interface VirtualMachineCapabilities
Throws:
CloudException
InternalException

identifyVlanRequirement

@Nonnull
public Requirement identifyVlanRequirement()
                                    throws CloudException,
                                           InternalException
Specified by:
identifyVlanRequirement in interface VirtualMachineCapabilities
Throws:
CloudException
InternalException

isAPITerminationPreventable

public boolean isAPITerminationPreventable()
                                    throws CloudException,
                                           InternalException
Specified by:
isAPITerminationPreventable in interface VirtualMachineCapabilities
Throws:
CloudException
InternalException

isBasicAnalyticsSupported

public boolean isBasicAnalyticsSupported()
                                  throws CloudException,
                                         InternalException
Specified by:
isBasicAnalyticsSupported in interface VirtualMachineCapabilities
Throws:
CloudException
InternalException

isExtendedAnalyticsSupported

public boolean isExtendedAnalyticsSupported()
                                     throws CloudException,
                                            InternalException
Specified by:
isExtendedAnalyticsSupported in interface VirtualMachineCapabilities
Throws:
CloudException
InternalException

isUserDataSupported

public boolean isUserDataSupported()
                            throws CloudException,
                                   InternalException
Specified by:
isUserDataSupported in interface VirtualMachineCapabilities
Throws:
CloudException
InternalException

listSupportedArchitectures

@Nonnull
public Iterable<Architecture> listSupportedArchitectures()
                                                  throws InternalException,
                                                         CloudException
Specified by:
listSupportedArchitectures in interface VirtualMachineCapabilities
Throws:
InternalException
CloudException


Copyright © 2014 enStratus Networks Inc. All Rights Reserved.