org.dasein.cloud.vcloud.compute
Class DefunctVM
java.lang.Object
org.dasein.cloud.vcloud.compute.DefunctVM
- All Implemented Interfaces:
- AccessControlledService, VirtualMachineSupport
- Direct Known Subclasses:
- vAppSupport
public abstract class DefunctVM
- extends Object
- implements VirtualMachineSupport
[Class Documentation]
Created by George Reese: 2/10/13 8:19 PM
- Author:
- George Reese
| 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 vmId,
String intoDcId,
String name,
String description,
boolean powerOn,
String... firewallIds)
|
VMScalingCapabilities |
describeVerticalScalingCapabilities()
|
void |
disableAnalytics(String vmId)
|
void |
enableAnalytics(String vmId)
|
String |
getConsoleOutput(String vmId)
|
protected ProviderContext |
getContext()
Provides the current provider context for the request in progress. |
int |
getCostFactor(VmState state)
|
int |
getMaximumVirtualMachineCount()
|
VirtualMachineProduct |
getProduct(String productId)
|
protected CloudProvider |
getProvider()
|
VirtualMachine |
getVirtualMachine(String vmId)
|
VmStatistics |
getVMStatistics(String vmId,
long from,
long to)
|
Iterable<VmStatistics> |
getVMStatisticsForPeriod(String vmId,
long from,
long to)
|
Requirement |
identifyImageRequirement(ImageClass cls)
|
Requirement |
identifyPasswordRequirement()
Deprecated. |
Requirement |
identifyPasswordRequirement(Platform platform)
|
Requirement |
identifyRootVolumeRequirement()
|
Requirement |
identifyShellKeyRequirement()
Deprecated. |
Requirement |
identifyShellKeyRequirement(Platform platform)
|
Requirement |
identifyStaticIPRequirement()
|
Requirement |
identifyVlanRequirement()
|
boolean |
isAPITerminationPreventable()
|
boolean |
isBasicAnalyticsSupported()
|
boolean |
isExtendedAnalyticsSupported()
|
boolean |
isUserDataSupported()
|
VirtualMachine |
launch(String fromMachineImageId,
VirtualMachineProduct product,
String dataCenterId,
String name,
String description,
String withKeypairId,
String inVlanId,
boolean withAnalytics,
boolean asSandbox,
String... firewallIds)
Deprecated. |
VirtualMachine |
launch(String fromMachineImageId,
VirtualMachineProduct product,
String dataCenterId,
String name,
String description,
String withKeypairId,
String inVlanId,
boolean withAnalytics,
boolean asSandbox,
String[] firewallIds,
Tag... tags)
Deprecated. |
Iterable<String> |
listFirewalls(String vmId)
|
Iterable<Architecture> |
listSupportedArchitectures()
|
Iterable<VirtualMachine> |
listVirtualMachines()
|
Iterable<ResourceStatus> |
listVirtualMachineStatus()
|
String[] |
mapServiceAction(ServiceAction action)
|
void |
pause(String vmId)
|
void |
reboot(String vmId)
|
void |
resume(String vmId)
|
void |
start(String vmId)
|
void |
stop(String vmId)
|
void |
stop(String vmId,
boolean force)
|
boolean |
supportsAnalytics()
|
boolean |
supportsPauseUnpause(VirtualMachine vm)
|
boolean |
supportsStartStop(VirtualMachine vm)
|
boolean |
supportsSuspendResume(VirtualMachine vm)
|
void |
suspend(String vmId)
|
void |
unpause(String vmId)
|
void |
updateTags(String vmId,
Tag... tags)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefunctVM
public DefunctVM(CloudProvider provider)
alterVirtualMachine
public VirtualMachine alterVirtualMachine(@Nonnull
String vmId,
@Nonnull
VMScalingOptions options)
throws InternalException,
CloudException
- Specified by:
alterVirtualMachine in interface VirtualMachineSupport
- Throws:
InternalException
CloudException
clone
@Nonnull
public VirtualMachine clone(@Nonnull
String vmId,
@Nonnull
String intoDcId,
@Nonnull
String name,
@Nonnull
String description,
boolean powerOn,
@Nullable
String... firewallIds)
throws InternalException,
CloudException
- Specified by:
clone in interface VirtualMachineSupport
- Throws:
InternalException
CloudException
describeVerticalScalingCapabilities
@Nullable
public VMScalingCapabilities describeVerticalScalingCapabilities()
throws CloudException,
InternalException
- Specified by:
describeVerticalScalingCapabilities in interface VirtualMachineSupport
- Throws:
CloudException
InternalException
disableAnalytics
public void disableAnalytics(@Nonnull
String vmId)
throws InternalException,
CloudException
- Specified by:
disableAnalytics in interface VirtualMachineSupport
- Throws:
InternalException
CloudException
enableAnalytics
public void enableAnalytics(@Nonnull
String vmId)
throws InternalException,
CloudException
- Specified by:
enableAnalytics in interface VirtualMachineSupport
- Throws:
InternalException
CloudException
getContext
@Nonnull
protected final ProviderContext getContext()
throws CloudException
- Provides the current provider context for the request in progress.
- Returns:
- the current provider context
- Throws:
CloudException - no context was defined before making this call
getConsoleOutput
@Nonnull
public String getConsoleOutput(@Nonnull
String vmId)
throws InternalException,
CloudException
- Specified by:
getConsoleOutput in interface VirtualMachineSupport
- Throws:
InternalException
CloudException
getCostFactor
public int getCostFactor(@Nonnull
VmState state)
throws InternalException,
CloudException
- Specified by:
getCostFactor in interface VirtualMachineSupport
- Throws:
InternalException
CloudException
getMaximumVirtualMachineCount
public int getMaximumVirtualMachineCount()
throws CloudException,
InternalException
- Specified by:
getMaximumVirtualMachineCount in interface VirtualMachineSupport
- Throws:
CloudException
InternalException
getProduct
@Nullable
public VirtualMachineProduct getProduct(@Nonnull
String productId)
throws InternalException,
CloudException
- Specified by:
getProduct in interface VirtualMachineSupport
- Throws:
InternalException
CloudException
getProvider
@Nonnull
protected final CloudProvider getProvider()
- Returns:
- the current provider governing any operations against this cloud in this support instance
getVirtualMachine
@Nullable
public VirtualMachine getVirtualMachine(@Nonnull
String vmId)
throws InternalException,
CloudException
- Specified by:
getVirtualMachine in interface VirtualMachineSupport
- Throws:
InternalException
CloudException
getVMStatistics
@Nonnull
public VmStatistics getVMStatistics(@Nonnull
String vmId,
@Nonnegative
long from,
@Nonnegative
long to)
throws InternalException,
CloudException
- Specified by:
getVMStatistics in interface VirtualMachineSupport
- Throws:
InternalException
CloudException
getVMStatisticsForPeriod
@Nonnull
public Iterable<VmStatistics> getVMStatisticsForPeriod(@Nonnull
String vmId,
@Nonnegative
long from,
@Nonnegative
long to)
throws InternalException,
CloudException
- Specified by:
getVMStatisticsForPeriod in interface VirtualMachineSupport
- Throws:
InternalException
CloudException
identifyImageRequirement
@Nonnull
public Requirement identifyImageRequirement(@Nonnull
ImageClass cls)
throws CloudException,
InternalException
- Specified by:
identifyImageRequirement in interface VirtualMachineSupport
- Throws:
CloudException
InternalException
identifyPasswordRequirement
@Deprecated
@Nonnull
public Requirement identifyPasswordRequirement()
throws CloudException,
InternalException
- Deprecated.
- Specified by:
identifyPasswordRequirement in interface VirtualMachineSupport
- Throws:
CloudException
InternalException
identifyPasswordRequirement
@Nonnull
public Requirement identifyPasswordRequirement(Platform platform)
throws CloudException,
InternalException
- Specified by:
identifyPasswordRequirement in interface VirtualMachineSupport
- Throws:
CloudException
InternalException
identifyRootVolumeRequirement
@Nonnull
public Requirement identifyRootVolumeRequirement()
throws CloudException,
InternalException
- Specified by:
identifyRootVolumeRequirement in interface VirtualMachineSupport
- Throws:
CloudException
InternalException
identifyShellKeyRequirement
@Deprecated
@Nonnull
public Requirement identifyShellKeyRequirement()
throws CloudException,
InternalException
- Deprecated.
- Specified by:
identifyShellKeyRequirement in interface VirtualMachineSupport
- Throws:
CloudException
InternalException
identifyShellKeyRequirement
@Nonnull
public Requirement identifyShellKeyRequirement(Platform platform)
throws CloudException,
InternalException
- Specified by:
identifyShellKeyRequirement in interface VirtualMachineSupport
- Throws:
CloudException
InternalException
identifyStaticIPRequirement
@Nonnull
public Requirement identifyStaticIPRequirement()
throws CloudException,
InternalException
- Specified by:
identifyStaticIPRequirement in interface VirtualMachineSupport
- Throws:
CloudException
InternalException
identifyVlanRequirement
@Nonnull
public Requirement identifyVlanRequirement()
throws CloudException,
InternalException
- Specified by:
identifyVlanRequirement in interface VirtualMachineSupport
- Throws:
CloudException
InternalException
isAPITerminationPreventable
public boolean isAPITerminationPreventable()
throws CloudException,
InternalException
- Specified by:
isAPITerminationPreventable in interface VirtualMachineSupport
- Throws:
CloudException
InternalException
isBasicAnalyticsSupported
public boolean isBasicAnalyticsSupported()
throws CloudException,
InternalException
- Specified by:
isBasicAnalyticsSupported in interface VirtualMachineSupport
- Throws:
CloudException
InternalException
isExtendedAnalyticsSupported
public boolean isExtendedAnalyticsSupported()
throws CloudException,
InternalException
- Specified by:
isExtendedAnalyticsSupported in interface VirtualMachineSupport
- Throws:
CloudException
InternalException
isUserDataSupported
public boolean isUserDataSupported()
throws CloudException,
InternalException
- Specified by:
isUserDataSupported in interface VirtualMachineSupport
- Throws:
CloudException
InternalException
launch
@Deprecated
@Nonnull
public VirtualMachine launch(@Nonnull
String fromMachineImageId,
@Nonnull
VirtualMachineProduct product,
@Nonnull
String dataCenterId,
@Nonnull
String name,
@Nonnull
String description,
@Nullable
String withKeypairId,
@Nullable
String inVlanId,
boolean withAnalytics,
boolean asSandbox,
@Nullable
String... firewallIds)
throws InternalException,
CloudException
- Deprecated.
- Specified by:
launch in interface VirtualMachineSupport
- Throws:
InternalException
CloudException
launch
@Deprecated
@Nonnull
public VirtualMachine launch(@Nonnull
String fromMachineImageId,
@Nonnull
VirtualMachineProduct product,
@Nonnull
String dataCenterId,
@Nonnull
String name,
@Nonnull
String description,
@Nullable
String withKeypairId,
@Nullable
String inVlanId,
boolean withAnalytics,
boolean asSandbox,
@Nullable
String[] firewallIds,
@Nullable
Tag... tags)
throws InternalException,
CloudException
- Deprecated.
- Specified by:
launch in interface VirtualMachineSupport
- Throws:
InternalException
CloudException
listFirewalls
@Nonnull
public Iterable<String> listFirewalls(@Nonnull
String vmId)
throws InternalException,
CloudException
- Specified by:
listFirewalls in interface VirtualMachineSupport
- Throws:
InternalException
CloudException
listSupportedArchitectures
public Iterable<Architecture> listSupportedArchitectures()
throws InternalException,
CloudException
- Specified by:
listSupportedArchitectures in interface VirtualMachineSupport
- Throws:
InternalException
CloudException
listVirtualMachineStatus
@Nonnull
public Iterable<ResourceStatus> listVirtualMachineStatus()
throws InternalException,
CloudException
- Specified by:
listVirtualMachineStatus in interface VirtualMachineSupport
- Throws:
InternalException
CloudException
listVirtualMachines
@Nonnull
public Iterable<VirtualMachine> listVirtualMachines()
throws InternalException,
CloudException
- Specified by:
listVirtualMachines in interface VirtualMachineSupport
- Throws:
InternalException
CloudException
pause
public void pause(@Nonnull
String vmId)
throws InternalException,
CloudException
- Specified by:
pause in interface VirtualMachineSupport
- Throws:
InternalException
CloudException
reboot
public void reboot(@Nonnull
String vmId)
throws CloudException,
InternalException
- Specified by:
reboot in interface VirtualMachineSupport
- Throws:
CloudException
InternalException
resume
public void resume(@Nonnull
String vmId)
throws CloudException,
InternalException
- Specified by:
resume in interface VirtualMachineSupport
- Throws:
CloudException
InternalException
start
public void start(@Nonnull
String vmId)
throws InternalException,
CloudException
- Specified by:
start in interface VirtualMachineSupport
- Throws:
InternalException
CloudException
stop
public final void stop(@Nonnull
String vmId)
throws InternalException,
CloudException
- Specified by:
stop in interface VirtualMachineSupport
- Throws:
InternalException
CloudException
stop
public void stop(@Nonnull
String vmId,
boolean force)
throws InternalException,
CloudException
- Specified by:
stop in interface VirtualMachineSupport
- Throws:
InternalException
CloudException
supportsAnalytics
public final boolean supportsAnalytics()
throws CloudException,
InternalException
- Specified by:
supportsAnalytics in interface VirtualMachineSupport
- Throws:
CloudException
InternalException
supportsPauseUnpause
public boolean supportsPauseUnpause(@Nonnull
VirtualMachine vm)
- Specified by:
supportsPauseUnpause in interface VirtualMachineSupport
supportsStartStop
public boolean supportsStartStop(@Nonnull
VirtualMachine vm)
- Specified by:
supportsStartStop in interface VirtualMachineSupport
supportsSuspendResume
public boolean supportsSuspendResume(@Nonnull
VirtualMachine vm)
- Specified by:
supportsSuspendResume in interface VirtualMachineSupport
suspend
public void suspend(@Nonnull
String vmId)
throws CloudException,
InternalException
- Specified by:
suspend in interface VirtualMachineSupport
- Throws:
CloudException
InternalException
unpause
public void unpause(@Nonnull
String vmId)
throws CloudException,
InternalException
- Specified by:
unpause in interface VirtualMachineSupport
- Throws:
CloudException
InternalException
updateTags
public void updateTags(@Nonnull
String vmId,
@Nonnull
Tag... tags)
throws CloudException,
InternalException
- Specified by:
updateTags in interface VirtualMachineSupport
- Throws:
CloudException
InternalException
mapServiceAction
@Nonnull
public String[] mapServiceAction(@Nonnull
ServiceAction action)
- Specified by:
mapServiceAction in interface AccessControlledService
Copyright © 2013 enStratus Networks Inc. All Rights Reserved.