org.dasein.cloud.aws.compute
Class EC2Instance
java.lang.Object
org.dasein.cloud.aws.compute.EC2Instance
- All Implemented Interfaces:
- org.dasein.cloud.AccessControlledService, org.dasein.cloud.compute.VirtualMachineSupport
public class EC2Instance
- extends Object
- implements org.dasein.cloud.compute.VirtualMachineSupport
| 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 |
void |
boot(String instanceId)
|
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)
|
String |
getConsoleOutput(String instanceId)
|
org.dasein.cloud.compute.VirtualMachineProduct |
getProduct(String sizeId)
|
String |
getProviderTermForServer(Locale locale)
|
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(String imageId,
org.dasein.cloud.compute.VirtualMachineProduct size,
String inZoneId,
String name,
String description,
String keypair,
String inVlanId,
boolean withMonitoring,
boolean asImageSandbox,
String... protectedByFirewalls)
|
org.dasein.cloud.compute.VirtualMachine |
launch(String imageId,
org.dasein.cloud.compute.VirtualMachineProduct size,
String inZoneId,
String name,
String description,
String keypair,
String inVlanId,
boolean withMonitoring,
boolean asImageSandbox,
String[] protectedByFirewalls,
org.dasein.cloud.Tag... tags)
|
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()
|
String[] |
mapServiceAction(org.dasein.cloud.identity.ServiceAction action)
|
void |
pause(String instanceId)
|
void |
reboot(String instanceId)
|
boolean |
supportsAnalytics()
|
void |
terminate(String instanceId)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
boot
public void boot(@Nonnull
String instanceId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
boot in interface org.dasein.cloud.compute.VirtualMachineSupport
- 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
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
enableAnalytics
public void enableAnalytics(String instanceId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
enableAnalytics in interface org.dasein.cloud.compute.VirtualMachineSupport
- 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
- 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
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
getProviderTermForServer
@Nonnull
public String getProviderTermForServer(@Nonnull
Locale locale)
- Specified by:
getProviderTermForServer in interface org.dasein.cloud.compute.VirtualMachineSupport
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
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
getProduct
@Nullable
public org.dasein.cloud.compute.VirtualMachineProduct getProduct(@Nonnull
String sizeId)
- Specified by:
getProduct in interface org.dasein.cloud.compute.VirtualMachineSupport
getVMStatistics
public org.dasein.cloud.compute.VmStatistics getVMStatistics(String instanceId,
long startTimestamp,
long endTimestamp)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
getVMStatistics in interface org.dasein.cloud.compute.VirtualMachineSupport
- 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
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
isSubscribed
public boolean isSubscribed()
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
isSubscribed in interface org.dasein.cloud.compute.VirtualMachineSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
listProducts
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
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
launch
@Nonnull
public org.dasein.cloud.compute.VirtualMachine launch(@Nonnull
String imageId,
@Nonnull
org.dasein.cloud.compute.VirtualMachineProduct size,
@Nullable
String inZoneId,
@Nonnull
String name,
@Nullable
String description,
@Nullable
String keypair,
@Nullable
String inVlanId,
boolean withMonitoring,
boolean asImageSandbox,
@Nullable
String... protectedByFirewalls)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
launch in interface org.dasein.cloud.compute.VirtualMachineSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
launch
@Nonnull
public org.dasein.cloud.compute.VirtualMachine launch(@Nonnull
String imageId,
@Nonnull
org.dasein.cloud.compute.VirtualMachineProduct size,
@Nullable
String inZoneId,
@Nonnull
String name,
@Nullable
String description,
@Nullable
String keypair,
@Nullable
String inVlanId,
boolean withMonitoring,
boolean asImageSandbox,
@Nullable
String[] protectedByFirewalls,
@Nullable
org.dasein.cloud.Tag... tags)
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
launch in interface org.dasein.cloud.compute.VirtualMachineSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
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
- 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
pause
public void pause(@Nonnull
String instanceId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
pause in interface org.dasein.cloud.compute.VirtualMachineSupport
- 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
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
supportsAnalytics
public boolean supportsAnalytics()
throws org.dasein.cloud.CloudException,
org.dasein.cloud.InternalException
- Specified by:
supportsAnalytics in interface org.dasein.cloud.compute.VirtualMachineSupport
- Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException
terminate
public void terminate(@Nonnull
String instanceId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
terminate in interface org.dasein.cloud.compute.VirtualMachineSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
disableAnalytics
public void disableAnalytics(String instanceId)
throws org.dasein.cloud.InternalException,
org.dasein.cloud.CloudException
- Specified by:
disableAnalytics in interface org.dasein.cloud.compute.VirtualMachineSupport
- Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException
Copyright © 2012 enStratus Networks LLC. All Rights Reserved.