org.dasein.cloud.aws.compute
Class EBSVolume

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

public class EBSVolume
extends Object
implements org.dasein.cloud.compute.VolumeSupport


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 create(String fromSnapshot, int sizeInGb, String inZone)
           
 void detach(String volumeId)
           
 String getProviderTermForVolume(Locale locale)
           
 org.dasein.cloud.compute.Volume getVolume(String volumeId)
           
 boolean isSubscribed()
           
 Iterable<String> listPossibleDeviceIds(org.dasein.cloud.compute.Platform platform)
           
 Iterable<org.dasein.cloud.compute.Volume> listVolumes()
           
 String[] mapServiceAction(org.dasein.cloud.identity.ServiceAction action)
           
 void remove(String volumeId)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

attach

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

create

public String create(String fromSnapshot,
                     int sizeInGb,
                     String inZone)
              throws org.dasein.cloud.InternalException,
                     org.dasein.cloud.CloudException
Specified by:
create in interface org.dasein.cloud.compute.VolumeSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

remove

public void remove(String volumeId)
            throws org.dasein.cloud.InternalException,
                   org.dasein.cloud.CloudException
Specified by:
remove in interface org.dasein.cloud.compute.VolumeSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

detach

public void detach(String volumeId)
            throws org.dasein.cloud.InternalException,
                   org.dasein.cloud.CloudException
Specified by:
detach in interface org.dasein.cloud.compute.VolumeSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

getProviderTermForVolume

public String getProviderTermForVolume(Locale locale)
Specified by:
getProviderTermForVolume in interface org.dasein.cloud.compute.VolumeSupport

isSubscribed

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

listPossibleDeviceIds

public Iterable<String> listPossibleDeviceIds(org.dasein.cloud.compute.Platform platform)
                                       throws org.dasein.cloud.InternalException,
                                              org.dasein.cloud.CloudException
Specified by:
listPossibleDeviceIds in interface org.dasein.cloud.compute.VolumeSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

getVolume

public org.dasein.cloud.compute.Volume getVolume(String volumeId)
                                          throws org.dasein.cloud.InternalException,
                                                 org.dasein.cloud.CloudException
Specified by:
getVolume in interface org.dasein.cloud.compute.VolumeSupport
Throws:
org.dasein.cloud.InternalException
org.dasein.cloud.CloudException

listVolumes

public Iterable<org.dasein.cloud.compute.Volume> listVolumes()
                                                      throws org.dasein.cloud.InternalException,
                                                             org.dasein.cloud.CloudException
Specified by:
listVolumes in interface org.dasein.cloud.compute.VolumeSupport
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


Copyright © 2012 enStratus Networks LLC. All Rights Reserved.