org.dasein.cloud.aws.compute
Class EBSVolume

java.lang.Object
  extended by org.dasein.cloud.compute.AbstractVolumeSupport
      extended by org.dasein.cloud.aws.compute.EBSVolume
All Implemented Interfaces:
org.dasein.cloud.AccessControlledService, org.dasein.cloud.compute.VolumeSupport

public class EBSVolume
extends org.dasein.cloud.compute.AbstractVolumeSupport


Field Summary
 
Fields inherited from interface org.dasein.cloud.compute.VolumeSupport
ANY, ATTACH, CREATE_VOLUME, DETACH, GET_VOLUME, LIST_VOLUME, REMOVE_VOLUME
 
Method Summary
 void attach(String volumeId, String toServer, String device)
           
 String createVolume(org.dasein.cloud.compute.VolumeCreateOptions options)
           
 void detach(String volumeId, boolean force)
           
 org.dasein.cloud.compute.VolumeCapabilities getCapabilities()
           
 int getMaximumVolumeCount()
           
 org.dasein.util.uom.storage.Storage<org.dasein.util.uom.storage.Gigabyte> getMaximumVolumeSize()
           
 org.dasein.util.uom.storage.Storage<org.dasein.util.uom.storage.Gigabyte> getMinimumVolumeSize()
           
 String getProviderTermForVolume(Locale locale)
           
 org.dasein.cloud.compute.Volume getVolume(String volumeId)
           
 org.dasein.cloud.compute.VolumeProduct getVolumeProduct(String volumeProductId)
           
 org.dasein.cloud.Requirement getVolumeProductRequirement()
           
 boolean isSubscribed()
           
 boolean isVolumeSizeDeterminedByProduct()
           
 Iterable<String> listPossibleDeviceIds(org.dasein.cloud.compute.Platform platform)
           
 Iterable<org.dasein.cloud.compute.VolumeFormat> listSupportedFormats()
           
 Iterable<org.dasein.cloud.compute.VolumeProduct> listVolumeProducts()
           
 Iterable<org.dasein.cloud.compute.Volume> listVolumes()
           
 Iterable<org.dasein.cloud.compute.Volume> listVolumes(org.dasein.cloud.compute.VolumeFilterOptions options)
           
 Iterable<org.dasein.cloud.ResourceStatus> listVolumeStatus()
           
 String[] mapServiceAction(org.dasein.cloud.identity.ServiceAction action)
           
 void remove(String volumeId)
           
 void removeTags(String[] volumeIds, org.dasein.cloud.Tag... tags)
           
 void removeTags(String volumeId, org.dasein.cloud.Tag... tags)
           
static org.dasein.cloud.compute.VolumeState toVolumeState(Node node)
           
 void updateTags(String[] volumeIds, org.dasein.cloud.Tag... tags)
           
 void updateTags(String volumeId, org.dasein.cloud.Tag... tags)
           
 
Methods inherited from class org.dasein.cloud.compute.AbstractVolumeSupport
create, detach, getContext, getProvider, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

attach

public void attach(@Nonnull
                   String volumeId,
                   @Nonnull
                   String toServer,
                   @Nonnull
                   String device)
            throws org.dasein.cloud.InternalException,
                   org.dasein.cloud.CloudException
Specified by:
attach in interface org.dasein.cloud.compute.VolumeSupport
Overrides:
attach in class org.dasein.cloud.compute.AbstractVolumeSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

createVolume

@Nonnull
public String createVolume(@Nonnull
                                   org.dasein.cloud.compute.VolumeCreateOptions options)
                    throws org.dasein.cloud.InternalException,
                           org.dasein.cloud.CloudException
Specified by:
createVolume in interface org.dasein.cloud.compute.VolumeSupport
Overrides:
createVolume in class org.dasein.cloud.compute.AbstractVolumeSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

detach

public void detach(@Nonnull
                   String volumeId,
                   boolean force)
            throws org.dasein.cloud.InternalException,
                   org.dasein.cloud.CloudException
Specified by:
detach in interface org.dasein.cloud.compute.VolumeSupport
Overrides:
detach in class org.dasein.cloud.compute.AbstractVolumeSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

getCapabilities

public org.dasein.cloud.compute.VolumeCapabilities getCapabilities()

getMaximumVolumeCount

public int getMaximumVolumeCount()
                          throws org.dasein.cloud.InternalException,
                                 org.dasein.cloud.CloudException
Specified by:
getMaximumVolumeCount in interface org.dasein.cloud.compute.VolumeSupport
Overrides:
getMaximumVolumeCount in class org.dasein.cloud.compute.AbstractVolumeSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

getMaximumVolumeSize

@Nullable
public org.dasein.util.uom.storage.Storage<org.dasein.util.uom.storage.Gigabyte> getMaximumVolumeSize()
                                                                                               throws org.dasein.cloud.InternalException,
                                                                                                      org.dasein.cloud.CloudException
Specified by:
getMaximumVolumeSize in interface org.dasein.cloud.compute.VolumeSupport
Overrides:
getMaximumVolumeSize in class org.dasein.cloud.compute.AbstractVolumeSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

getMinimumVolumeSize

@Nonnull
public org.dasein.util.uom.storage.Storage<org.dasein.util.uom.storage.Gigabyte> getMinimumVolumeSize()
                                                                                               throws org.dasein.cloud.InternalException,
                                                                                                      org.dasein.cloud.CloudException
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

getProviderTermForVolume

@Nonnull
public String getProviderTermForVolume(@Nonnull
                                               Locale locale)

isSubscribed

public boolean isSubscribed()
                     throws org.dasein.cloud.CloudException,
                            org.dasein.cloud.InternalException
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

listPossibleDeviceIds

@Nonnull
public Iterable<String> listPossibleDeviceIds(@Nonnull
                                                      org.dasein.cloud.compute.Platform platform)
                                       throws org.dasein.cloud.InternalException,
                                              org.dasein.cloud.CloudException
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

listSupportedFormats

@Nonnull
public Iterable<org.dasein.cloud.compute.VolumeFormat> listSupportedFormats()
                                                                     throws org.dasein.cloud.InternalException,
                                                                            org.dasein.cloud.CloudException
Specified by:
listSupportedFormats in interface org.dasein.cloud.compute.VolumeSupport
Overrides:
listSupportedFormats in class org.dasein.cloud.compute.AbstractVolumeSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

listVolumeProducts

@Nonnull
public Iterable<org.dasein.cloud.compute.VolumeProduct> listVolumeProducts()
                                                                    throws org.dasein.cloud.InternalException,
                                                                           org.dasein.cloud.CloudException
Specified by:
listVolumeProducts in interface org.dasein.cloud.compute.VolumeSupport
Overrides:
listVolumeProducts in class org.dasein.cloud.compute.AbstractVolumeSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

getVolume

@Nullable
public org.dasein.cloud.compute.Volume getVolume(@Nonnull
                                                          String volumeId)
                                          throws org.dasein.cloud.InternalException,
                                                 org.dasein.cloud.CloudException
Specified by:
getVolume in interface org.dasein.cloud.compute.VolumeSupport
Overrides:
getVolume in class org.dasein.cloud.compute.AbstractVolumeSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

getVolumeProductRequirement

@Nonnull
public org.dasein.cloud.Requirement getVolumeProductRequirement()
                                                         throws org.dasein.cloud.InternalException,
                                                                org.dasein.cloud.CloudException
Specified by:
getVolumeProductRequirement in interface org.dasein.cloud.compute.VolumeSupport
Overrides:
getVolumeProductRequirement in class org.dasein.cloud.compute.AbstractVolumeSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

isVolumeSizeDeterminedByProduct

public boolean isVolumeSizeDeterminedByProduct()
                                        throws org.dasein.cloud.InternalException,
                                               org.dasein.cloud.CloudException
Specified by:
isVolumeSizeDeterminedByProduct in interface org.dasein.cloud.compute.VolumeSupport
Overrides:
isVolumeSizeDeterminedByProduct in class org.dasein.cloud.compute.AbstractVolumeSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

listVolumeStatus

@Nonnull
public Iterable<org.dasein.cloud.ResourceStatus> listVolumeStatus()
                                                           throws org.dasein.cloud.InternalException,
                                                                  org.dasein.cloud.CloudException
Specified by:
listVolumeStatus in interface org.dasein.cloud.compute.VolumeSupport
Overrides:
listVolumeStatus in class org.dasein.cloud.compute.AbstractVolumeSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

listVolumes

@Nonnull
public Iterable<org.dasein.cloud.compute.Volume> listVolumes()
                                                      throws org.dasein.cloud.InternalException,
                                                             org.dasein.cloud.CloudException
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

listVolumes

@Nonnull
public Iterable<org.dasein.cloud.compute.Volume> listVolumes(@Nullable
                                                                     org.dasein.cloud.compute.VolumeFilterOptions options)
                                                      throws org.dasein.cloud.InternalException,
                                                             org.dasein.cloud.CloudException
Specified by:
listVolumes in interface org.dasein.cloud.compute.VolumeSupport
Overrides:
listVolumes in class org.dasein.cloud.compute.AbstractVolumeSupport
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.AbstractVolumeSupport

remove

public void remove(@Nonnull
                   String volumeId)
            throws org.dasein.cloud.InternalException,
                   org.dasein.cloud.CloudException
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

updateTags

public void updateTags(@Nonnull
                       String volumeId,
                       @Nonnull
                       org.dasein.cloud.Tag... tags)
                throws org.dasein.cloud.CloudException,
                       org.dasein.cloud.InternalException
Specified by:
updateTags in interface org.dasein.cloud.compute.VolumeSupport
Overrides:
updateTags in class org.dasein.cloud.compute.AbstractVolumeSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

updateTags

public void updateTags(@Nonnull
                       String[] volumeIds,
                       @Nonnull
                       org.dasein.cloud.Tag... tags)
                throws org.dasein.cloud.CloudException,
                       org.dasein.cloud.InternalException
Specified by:
updateTags in interface org.dasein.cloud.compute.VolumeSupport
Overrides:
updateTags in class org.dasein.cloud.compute.AbstractVolumeSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

removeTags

public void removeTags(@Nonnull
                       String volumeId,
                       @Nonnull
                       org.dasein.cloud.Tag... tags)
                throws org.dasein.cloud.CloudException,
                       org.dasein.cloud.InternalException
Specified by:
removeTags in interface org.dasein.cloud.compute.VolumeSupport
Overrides:
removeTags in class org.dasein.cloud.compute.AbstractVolumeSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

removeTags

public void removeTags(@Nonnull
                       String[] volumeIds,
                       @Nonnull
                       org.dasein.cloud.Tag... tags)
                throws org.dasein.cloud.CloudException,
                       org.dasein.cloud.InternalException
Specified by:
removeTags in interface org.dasein.cloud.compute.VolumeSupport
Overrides:
removeTags in class org.dasein.cloud.compute.AbstractVolumeSupport
Throws:
org.dasein.cloud.CloudException
org.dasein.cloud.InternalException

getVolumeProduct

public org.dasein.cloud.compute.VolumeProduct getVolumeProduct(String volumeProductId)
                                                        throws org.dasein.cloud.InternalException,
                                                               org.dasein.cloud.CloudException
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

toVolumeState

@Nullable
public static org.dasein.cloud.compute.VolumeState toVolumeState(Node node)


Copyright © 2009-2014 Dell, Inc.. All Rights Reserved.