org.dasein.cloud.aws.compute
Class EC2Instance
java.lang.Object
org.dasein.cloud.compute.AbstractVMSupport<AWSCloud>
org.dasein.cloud.aws.compute.EC2Instance
- All Implemented Interfaces:
- org.dasein.cloud.AccessControlledService, org.dasein.cloud.compute.VirtualMachineSupport
public class EC2Instance
- extends org.dasein.cloud.compute.AbstractVMSupport<AWSCloud>
| 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 |
org.dasein.cloud.compute.VirtualMachine |
alterVirtualMachine(String vmId,
org.dasein.cloud.compute.VMScalingOptions options)
|
org.dasein.cloud.compute.VirtualMachine |
clone(String vmId,
String intoDcId,
String name,
String description,
boolean powerOn,
String... firewallIds)
|
void |
disableAnalytics(String instanceId)
|
void |
enableAnalytics(String instanceId)
|
EC2InstanceCapabilities |
getCapabilities()
|
String |
getConsoleOutput(String instanceId)
|
String |
getPassword(String instanceId)
|
org.dasein.cloud.compute.VirtualMachineProduct |
getProduct(String sizeId)
|
org.dasein.cloud.compute.VirtualMachine |
getVirtualMachine(String instanceId)
|
org.dasein.cloud.compute.VmStatistics |
getVMStatistics(String instanceId,
long startTimestamp,
long endTimestamp)
|
Iterable<org.dasein.cloud.compute.VmStatistics> |
getVMStatisticsForPeriod(String instanceId,
long startTimestamp,
long endTimestamp)
|
boolean |
isSubscribed()
|
org.dasein.cloud.compute.VirtualMachine |
launch(org.dasein.cloud.compute.VMLaunchOptions cfg)
|
Iterable<String> |
listFirewalls(String instanceId)
|
Iterable<org.dasein.cloud.compute.VirtualMachineProduct> |
listProducts(org.dasein.cloud.compute.Architecture architecture)
|
Iterable<org.dasein.cloud.compute.VirtualMachine> |
listVirtualMachines()
|
Iterable<org.dasein.cloud.compute.VirtualMachine> |
listVirtualMachines(org.dasein.cloud.compute.VMFilterOptions options)
|
Iterable<org.dasein.cloud.ResourceStatus> |
listVirtualMachineStatus()
|
String[] |
mapServiceAction(org.dasein.cloud.identity.ServiceAction action)
|
void |
pause(String vmId)
|
void |
reboot(String instanceId)
|
void |
removeTags(String[] vmIds,
org.dasein.cloud.Tag... tags)
|
void |
removeTags(String vmId,
org.dasein.cloud.Tag... tags)
|
void |
resume(String vmId)
|
void |
start(String instanceId)
|
void |
stop(String instanceId,
boolean force)
|
void |
suspend(String vmId)
|
void |
terminate(String instanceId,
String explanation)
|
void |
unpause(String vmId)
|
void |
updateTags(String[] vmIds,
org.dasein.cloud.Tag... tags)
|
void |
updateTags(String vmId,
org.dasein.cloud.Tag... tags)
|
| Methods inherited from class org.dasein.cloud.compute.AbstractVMSupport |
describeVerticalScalingCapabilities, getContext, getCostFactor, getMaximumVirtualMachineCount, getProvider, getProviderTermForServer, getVMProductsResource, identifyImageRequirement, identifyPasswordRequirement, identifyPasswordRequirement, identifyRootVolumeRequirement, identifyShellKeyRequirement, identifyShellKeyRequirement, identifyStaticIPRequirement, identifyVlanRequirement, isAPITerminationPreventable, isBasicAnalyticsSupported, isExtendedAnalyticsSupported, isUserDataSupported, launch, launch, launchAsync, launchMany, listSupportedArchitectures, stop, supportsAnalytics, supportsPauseUnpause, supportsStartStop, supportsSuspendResume, terminate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
alterVirtualMachine
public org.dasein.cloud.compute.VirtualMachine alterVirtualMachine(@Nonnull
String vmId,
@Nonnull
org.dasein.cloud.compute.VMScalingOptions options)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
alterVirtualMachine in interface org.dasein.cloud.compute.VirtualMachineSupport- Overrides:
alterVirtualMachine in class org.dasein.cloud.compute.AbstractVMSupport<AWSCloud>
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
start
public void start(@Nonnull
String instanceId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
start in interface org.dasein.cloud.compute.VirtualMachineSupport- Overrides:
start in class org.dasein.cloud.compute.AbstractVMSupport<AWSCloud>
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
clone
@Nonnull
public org.dasein.cloud.compute.VirtualMachine clone(@Nonnull
String vmId,
@Nonnull
String intoDcId,
@Nonnull
String name,
@Nonnull
String description,
boolean powerOn,
@Nullable
String... firewallIds)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
clone in interface org.dasein.cloud.compute.VirtualMachineSupport- Overrides:
clone in class org.dasein.cloud.compute.AbstractVMSupport<AWSCloud>
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
enableAnalytics
public void enableAnalytics(@Nonnull
String instanceId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
enableAnalytics in interface org.dasein.cloud.compute.VirtualMachineSupport- Overrides:
enableAnalytics in class org.dasein.cloud.compute.AbstractVMSupport<AWSCloud>
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
getCapabilities
@Nonnull
public EC2InstanceCapabilities getCapabilities()
getPassword
@Nullable
public String getPassword(@Nonnull
String instanceId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
getPassword in interface org.dasein.cloud.compute.VirtualMachineSupport- Overrides:
getPassword in class org.dasein.cloud.compute.AbstractVMSupport<AWSCloud>
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
getConsoleOutput
@Nonnull
public String getConsoleOutput(@Nonnull
String instanceId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
getConsoleOutput in interface org.dasein.cloud.compute.VirtualMachineSupport- Overrides:
getConsoleOutput in class org.dasein.cloud.compute.AbstractVMSupport<AWSCloud>
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
listFirewalls
@Nonnull
public Iterable<String> listFirewalls(@Nonnull
String instanceId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
listFirewalls in interface org.dasein.cloud.compute.VirtualMachineSupport- Overrides:
listFirewalls in class org.dasein.cloud.compute.AbstractVMSupport<AWSCloud>
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
getVirtualMachine
@Nullable
public org.dasein.cloud.compute.VirtualMachine getVirtualMachine(@Nonnull
String instanceId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
getVirtualMachine in interface org.dasein.cloud.compute.VirtualMachineSupport- Overrides:
getVirtualMachine in class org.dasein.cloud.compute.AbstractVMSupport<AWSCloud>
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
getProduct
@Nullable
public org.dasein.cloud.compute.VirtualMachineProduct getProduct(@Nonnull
String sizeId)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
getProduct in interface org.dasein.cloud.compute.VirtualMachineSupport- Overrides:
getProduct in class org.dasein.cloud.compute.AbstractVMSupport<AWSCloud>
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
getVMStatistics
@Nonnull
public org.dasein.cloud.compute.VmStatistics getVMStatistics(@Nonnull
String instanceId,
@Nonnegative
long startTimestamp,
@Nonnegative
long endTimestamp)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
getVMStatistics in interface org.dasein.cloud.compute.VirtualMachineSupport- Overrides:
getVMStatistics in class org.dasein.cloud.compute.AbstractVMSupport<AWSCloud>
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
getVMStatisticsForPeriod
@Nonnull
public Iterable<org.dasein.cloud.compute.VmStatistics> getVMStatisticsForPeriod(@Nonnull
String instanceId,
long startTimestamp,
long endTimestamp)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
getVMStatisticsForPeriod in interface org.dasein.cloud.compute.VirtualMachineSupport- Overrides:
getVMStatisticsForPeriod in class org.dasein.cloud.compute.AbstractVMSupport<AWSCloud>
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
isSubscribed
public boolean isSubscribed()
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
listProducts
@Nonnull
public Iterable<org.dasein.cloud.compute.VirtualMachineProduct> listProducts(org.dasein.cloud.compute.Architecture architecture)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
listProducts in interface org.dasein.cloud.compute.VirtualMachineSupport- Overrides:
listProducts in class org.dasein.cloud.compute.AbstractVMSupport<AWSCloud>
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
launch
@Nonnull
public org.dasein.cloud.compute.VirtualMachine launch(@Nonnull
org.dasein.cloud.compute.VMLaunchOptions cfg)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
listVirtualMachineStatus
@Nonnull
public Iterable<org.dasein.cloud.ResourceStatus> listVirtualMachineStatus()
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
listVirtualMachineStatus in interface org.dasein.cloud.compute.VirtualMachineSupport- Overrides:
listVirtualMachineStatus in class org.dasein.cloud.compute.AbstractVMSupport<AWSCloud>
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
listVirtualMachines
@Nonnull
public Iterable<org.dasein.cloud.compute.VirtualMachine> listVirtualMachines()
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
listVirtualMachines in interface org.dasein.cloud.compute.VirtualMachineSupport- Overrides:
listVirtualMachines in class org.dasein.cloud.compute.AbstractVMSupport<AWSCloud>
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
listVirtualMachines
@Nonnull
public Iterable<org.dasein.cloud.compute.VirtualMachine> listVirtualMachines(@Nullable
org.dasein.cloud.compute.VMFilterOptions options)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
listVirtualMachines in interface org.dasein.cloud.compute.VirtualMachineSupport- Overrides:
listVirtualMachines in class org.dasein.cloud.compute.AbstractVMSupport<AWSCloud>
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
pause
public void pause(@Nonnull
String vmId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
pause in interface org.dasein.cloud.compute.VirtualMachineSupport- Overrides:
pause in class org.dasein.cloud.compute.AbstractVMSupport<AWSCloud>
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
mapServiceAction
@Nonnull
public String[] mapServiceAction(@Nonnull
org.dasein.cloud.identity.ServiceAction action)
- Specified by:
mapServiceAction in interface org.dasein.cloud.AccessControlledService- Overrides:
mapServiceAction in class org.dasein.cloud.compute.AbstractVMSupport<AWSCloud>
stop
public void stop(@Nonnull
String instanceId,
boolean force)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
stop in interface org.dasein.cloud.compute.VirtualMachineSupport- Overrides:
stop in class org.dasein.cloud.compute.AbstractVMSupport<AWSCloud>
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
reboot
public void reboot(@Nonnull
String instanceId)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
reboot in interface org.dasein.cloud.compute.VirtualMachineSupport- Overrides:
reboot in class org.dasein.cloud.compute.AbstractVMSupport<AWSCloud>
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
resume
public void resume(@Nonnull
String vmId)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
resume in interface org.dasein.cloud.compute.VirtualMachineSupport- Overrides:
resume in class org.dasein.cloud.compute.AbstractVMSupport<AWSCloud>
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
suspend
public void suspend(@Nonnull
String vmId)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
suspend in interface org.dasein.cloud.compute.VirtualMachineSupport- Overrides:
suspend in class org.dasein.cloud.compute.AbstractVMSupport<AWSCloud>
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
terminate
public void terminate(@Nonnull
String instanceId,
@Nullable
String explanation)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
unpause
public void unpause(@Nonnull
String vmId)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
unpause in interface org.dasein.cloud.compute.VirtualMachineSupport- Overrides:
unpause in class org.dasein.cloud.compute.AbstractVMSupport<AWSCloud>
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
disableAnalytics
public void disableAnalytics(@Nonnull
String instanceId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
disableAnalytics in interface org.dasein.cloud.compute.VirtualMachineSupport- Overrides:
disableAnalytics in class org.dasein.cloud.compute.AbstractVMSupport<AWSCloud>
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
updateTags
public void updateTags(@Nonnull
String vmId,
@Nonnull
org.dasein.cloud.Tag... tags)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
updateTags in interface org.dasein.cloud.compute.VirtualMachineSupport- Overrides:
updateTags in class org.dasein.cloud.compute.AbstractVMSupport<AWSCloud>
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
updateTags
public void updateTags(@Nonnull
String[] vmIds,
@Nonnull
org.dasein.cloud.Tag... tags)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
updateTags in interface org.dasein.cloud.compute.VirtualMachineSupport- Overrides:
updateTags in class org.dasein.cloud.compute.AbstractVMSupport<AWSCloud>
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
removeTags
public void removeTags(@Nonnull
String vmId,
@Nonnull
org.dasein.cloud.Tag... tags)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
removeTags in interface org.dasein.cloud.compute.VirtualMachineSupport- Overrides:
removeTags in class org.dasein.cloud.compute.AbstractVMSupport<AWSCloud>
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
removeTags
public void removeTags(@Nonnull
String[] vmIds,
@Nonnull
org.dasein.cloud.Tag... tags)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
removeTags in interface org.dasein.cloud.compute.VirtualMachineSupport- Overrides:
removeTags in class org.dasein.cloud.compute.AbstractVMSupport<AWSCloud>
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
Copyright © 2009-2014 Dell, Inc.. All Rights Reserved.