org.dasein.cloud.vsphere.compute
Class Vm
java.lang.Object
org.dasein.cloud.compute.AbstractVMSupport<PrivateCloud>
org.dasein.cloud.vsphere.compute.Vm
- All Implemented Interfaces:
- AccessControlledService, VirtualMachineSupport
public class Vm
- extends AbstractVMSupport<PrivateCloud>
| 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 |
alterVirtualMachineSize(String virtualMachineId,
String cpuCount,
String ramInMB)
|
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)
|
Iterable<VirtualMachineProduct> |
listProducts(VirtualMachineProductFilterOptions options,
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 |
alterVirtualMachine, alterVirtualMachineFirewalls, alterVirtualMachineProduct, cancelSpotDataFeedSubscription, cancelSpotVirtualMachineRequest, createSpotVirtualMachineRequest, describeVerticalScalingCapabilities, disableAnalytics, enableAnalytics, enableSpotDataFeedSubscription, 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, listProducts, listSpotPriceHistories, listSpotVirtualMachineRequests, listVirtualMachines, modifyInstance, pause, removeTags, removeTags, setTags, setTags, 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 |
start
public void start(@Nonnull
String serverId)
throws InternalException,
CloudException
- Specified by:
start in interface VirtualMachineSupport- Overrides:
start in class AbstractVMSupport<PrivateCloud>
- Throws:
InternalException
CloudException
alterVirtualMachineSize
public VirtualMachine alterVirtualMachineSize(@Nonnull
String virtualMachineId,
@Nullable
String cpuCount,
@Nullable
String ramInMB)
throws InternalException,
CloudException
- Specified by:
alterVirtualMachineSize in interface VirtualMachineSupport- Overrides:
alterVirtualMachineSize in class AbstractVMSupport<PrivateCloud>
- 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<PrivateCloud>
- 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<PrivateCloud>
- 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<PrivateCloud>
- 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<PrivateCloud>
- 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<PrivateCloud>
- Throws:
InternalException
CloudException
listProducts
public Iterable<VirtualMachineProduct> listProducts(VirtualMachineProductFilterOptions options,
Architecture architecture)
throws InternalException,
CloudException
- Specified by:
listProducts in interface VirtualMachineSupport- Overrides:
listProducts in class AbstractVMSupport<PrivateCloud>
- Throws:
InternalException
CloudException
listSupportedArchitectures
public Iterable<Architecture> listSupportedArchitectures()
throws InternalException,
CloudException
- Specified by:
listSupportedArchitectures in interface VirtualMachineSupport- Overrides:
listSupportedArchitectures in class AbstractVMSupport<PrivateCloud>
- Throws:
InternalException
CloudException
listVirtualMachineStatus
@Nonnull
public Iterable<ResourceStatus> listVirtualMachineStatus()
throws InternalException,
CloudException
- Specified by:
listVirtualMachineStatus in interface VirtualMachineSupport- Overrides:
listVirtualMachineStatus in class AbstractVMSupport<PrivateCloud>
- 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<PrivateCloud>
- Throws:
InternalException
CloudException
mapServiceAction
@Nonnull
public String[] mapServiceAction(@Nonnull
ServiceAction action)
- Specified by:
mapServiceAction in interface AccessControlledService- Overrides:
mapServiceAction in class AbstractVMSupport<PrivateCloud>
resume
public void resume(@Nonnull
String serverId)
throws InternalException,
CloudException
- Specified by:
resume in interface VirtualMachineSupport- Overrides:
resume in class AbstractVMSupport<PrivateCloud>
- 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<PrivateCloud>
- Throws:
InternalException
CloudException
suspend
public void suspend(@Nonnull
String serverId)
throws InternalException,
CloudException
- Specified by:
suspend in interface VirtualMachineSupport- Overrides:
suspend in class AbstractVMSupport<PrivateCloud>
- Throws:
InternalException
CloudException
reboot
public void reboot(@Nonnull
String serverId)
throws CloudException,
InternalException
- Specified by:
reboot in interface VirtualMachineSupport- Overrides:
reboot in class AbstractVMSupport<PrivateCloud>
- Throws:
CloudException
InternalException
terminate
public void terminate(@Nonnull
String serverId)
throws InternalException,
CloudException
- Specified by:
terminate in interface VirtualMachineSupport- Overrides:
terminate in class AbstractVMSupport<PrivateCloud>
- 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 © 2015 enStratus Networks Inc. All Rights Reserved.