org.dasein.cloud.services.disk
Interface VolumeServices


public interface VolumeServices


Method Summary
 void attach(String volumeId, String toServer, String device)
           
 String create(String fromSnapshot, int sizeInGb, String inZone)
           
 void delete(String volumeId)
           
 void detach(String volumeId)
           
 String getProviderTermForVolume(Locale locale)
           
 Volume getVolume(String volumeId)
           
 Collection<Volume> list()
           
 

Method Detail

attach

void attach(String volumeId,
            String toServer,
            String device)
            throws InternalException,
                   CloudException
Throws:
InternalException
CloudException

create

String create(String fromSnapshot,
              int sizeInGb,
              String inZone)
              throws InternalException,
                     CloudException
Throws:
InternalException
CloudException

delete

void delete(String volumeId)
            throws InternalException,
                   CloudException
Throws:
InternalException
CloudException

detach

void detach(String volumeId)
            throws InternalException,
                   CloudException
Throws:
InternalException
CloudException

getProviderTermForVolume

String getProviderTermForVolume(Locale locale)

getVolume

Volume getVolume(String volumeId)
                 throws InternalException,
                        CloudException
Throws:
InternalException
CloudException

list

Collection<Volume> list()
                        throws InternalException,
                               CloudException
Throws:
InternalException
CloudException