org.dasein.cloud.vsphere.compute
Class Vm

java.lang.Object
  extended by org.dasein.cloud.compute.AbstractVMSupport
      extended by org.dasein.cloud.vsphere.compute.Vm
All Implemented Interfaces:
AccessControlledService, VirtualMachineSupport

public class Vm
extends AbstractVMSupport


Field Summary
 
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
 VirtualMachine alterVirtualMachine(String vmId, VMScalingOptions options)
           
 VirtualMachine clone(String serverId, String intoDcId, String name, String description, boolean powerOn, String... firewallIds)
           
 VirtualMachineCapabilities getCapabilities()
           
 String getConsoleOutput(String serverId)
           
 VirtualMachineProduct getProduct(String productId)
           
 VirtualMachine getVirtualMachine(String serverId)
           
 boolean isSubscribed()
           
 VirtualMachine launch(VMLaunchOptions withLaunchOptions)
           
 Collection<String> listFirewalls(String serverId)
           
 Collection<VirtualMachineProduct> listProducts(Architecture architecture)
           
 Iterable<Architecture> listSupportedArchitectures()
           
 Collection<VirtualMachine> listVirtualMachines()
           
 Iterable<ResourceStatus> listVirtualMachineStatus()
           
 String[] mapServiceAction(ServiceAction action)
           
 void reboot(String serverId)
           
 void resume(String serverId)
           
 void start(String serverId)
           
 void stop(String vmId, boolean force)
           
 void suspend(String serverId)
           
 void terminate(String serverId)
           
 void terminate(String vmId, String explanation)
           
 
Methods inherited from class org.dasein.cloud.compute.AbstractVMSupport
cancelSpotDataFeedSubscription, cancelSpotInstanceRequest, createSpotInstanceRequest, describeVerticalScalingCapabilities, disableAnalytics, enableAnalytics, enableSpotDataFeedSubscription, getContext, getCostFactor, getMaximumVirtualMachineCount, getPassword, getProvider, getProviderTermForServer, getVMProductsResource, getVMStatistics, getVMStatisticsForPeriod, identifyImageRequirement, identifyPasswordRequirement, identifyPasswordRequirement, identifyRootVolumeRequirement, identifyShellKeyRequirement, identifyShellKeyRequirement, identifyStaticIPRequirement, identifyVlanRequirement, isAPITerminationPreventable, isBasicAnalyticsSupported, isExtendedAnalyticsSupported, isUserDataSupported, launch, launch, launchAsync, launchMany, listSpotPriceHistories, listVirtualMachines, 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
 

Method Detail

start

public void start(@Nonnull
                  String serverId)
           throws InternalException,
                  CloudException
Specified by:
start in interface VirtualMachineSupport
Overrides:
start in class AbstractVMSupport
Throws:
InternalException
CloudException

alterVirtualMachine

public VirtualMachine alterVirtualMachine(@Nonnull
                                          String vmId,
                                          @Nonnull
                                          VMScalingOptions options)
                                   throws InternalException,
                                          CloudException
Specified by:
alterVirtualMachine in interface VirtualMachineSupport
Overrides:
alterVirtualMachine in class AbstractVMSupport
Throws:
InternalException
CloudException

clone

@Nonnull
public VirtualMachine clone(@Nonnull
                                    String serverId,
                                    @Nullable
                                    String intoDcId,
                                    @Nonnull
                                    String name,
                                    @Nonnull
                                    String description,
                                    boolean powerOn,
                                    @Nullable
                                    String... firewallIds)
                     throws InternalException,
                            CloudException
Specified by:
clone in interface VirtualMachineSupport
Overrides:
clone in class AbstractVMSupport
Throws:
InternalException
CloudException

getCapabilities

@Nonnull
public VirtualMachineCapabilities getCapabilities()
                                           throws InternalException,
                                                  CloudException
Throws:
InternalException
CloudException

getConsoleOutput

@Nonnull
public String getConsoleOutput(@Nonnull
                                       String serverId)
                        throws InternalException,
                               CloudException
Specified by:
getConsoleOutput in interface VirtualMachineSupport
Overrides:
getConsoleOutput in class AbstractVMSupport
Throws:
InternalException
CloudException

listFirewalls

@Nonnull
public Collection<String> listFirewalls(@Nonnull
                                                String serverId)
                                 throws InternalException,
                                        CloudException
Specified by:
listFirewalls in interface VirtualMachineSupport
Overrides:
listFirewalls in class AbstractVMSupport
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
Throws:
InternalException
CloudException

getVirtualMachine

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

listProducts

@Nonnull
public Collection<VirtualMachineProduct> listProducts(@Nonnull
                                                              Architecture architecture)
                                               throws InternalException,
                                                      CloudException
Specified by:
listProducts in interface VirtualMachineSupport
Overrides:
listProducts in class AbstractVMSupport
Throws:
InternalException
CloudException

listSupportedArchitectures

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

listVirtualMachineStatus

@Nonnull
public Iterable<ResourceStatus> listVirtualMachineStatus()
                                                  throws InternalException,
                                                         CloudException
Specified by:
listVirtualMachineStatus in interface VirtualMachineSupport
Overrides:
listVirtualMachineStatus in class AbstractVMSupport
Throws:
InternalException
CloudException

launch

@Nonnull
public VirtualMachine launch(@Nonnull
                                     VMLaunchOptions withLaunchOptions)
                      throws CloudException,
                             InternalException
Throws:
CloudException
InternalException

listVirtualMachines

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

mapServiceAction

@Nonnull
public String[] mapServiceAction(@Nonnull
                                         ServiceAction action)
Specified by:
mapServiceAction in interface AccessControlledService
Overrides:
mapServiceAction in class AbstractVMSupport

resume

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

stop

public void stop(@Nonnull
                 String vmId,
                 boolean force)
          throws InternalException,
                 CloudException
Specified by:
stop in interface VirtualMachineSupport
Overrides:
stop in class AbstractVMSupport
Throws:
InternalException
CloudException

suspend

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

reboot

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

terminate

public void terminate(@Nonnull
                      String serverId)
               throws InternalException,
                      CloudException
Specified by:
terminate in interface VirtualMachineSupport
Overrides:
terminate in class AbstractVMSupport
Throws:
InternalException
CloudException

terminate

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

isSubscribed

public boolean isSubscribed()
                     throws CloudException,
                            InternalException
Throws:
CloudException
InternalException


Copyright © 2014 enStratus Networks Inc. All Rights Reserved.