org.dasein.cloud.cloudstack.compute
Class Volumes
java.lang.Object
org.dasein.cloud.compute.AbstractVolumeSupport
org.dasein.cloud.cloudstack.compute.Volumes
- All Implemented Interfaces:
- AccessControlledService, VolumeSupport
public class Volumes
- extends AbstractVolumeSupport
| Methods inherited from class org.dasein.cloud.compute.AbstractVolumeSupport |
create, detach, getContext, getProvider, listVolumes, mapServiceAction, removeTags, removeTags, toString, updateTags, updateTags |
attach
public void attach(@Nonnull
String volumeId,
@Nonnull
String serverId,
@Nullable
String deviceId)
throws InternalException,
CloudException
- Specified by:
attach in interface VolumeSupport- Overrides:
attach in class AbstractVolumeSupport
- Throws:
InternalException
CloudException
createVolume
@Nonnull
public String createVolume(@Nonnull
VolumeCreateOptions options)
throws InternalException,
CloudException
- Specified by:
createVolume in interface VolumeSupport- Overrides:
createVolume in class AbstractVolumeSupport
- Throws:
InternalException
CloudException
detach
public void detach(@Nonnull
String volumeId,
boolean force)
throws InternalException,
CloudException
- Specified by:
detach in interface VolumeSupport- Overrides:
detach in class AbstractVolumeSupport
- Throws:
InternalException
CloudException
getMaximumVolumeCount
public int getMaximumVolumeCount()
throws InternalException,
CloudException
- Specified by:
getMaximumVolumeCount in interface VolumeSupport- Overrides:
getMaximumVolumeCount in class AbstractVolumeSupport
- Throws:
InternalException
CloudException
getMaximumVolumeSize
@Nonnull
public Storage<Gigabyte> getMaximumVolumeSize()
throws InternalException,
CloudException
- Specified by:
getMaximumVolumeSize in interface VolumeSupport- Overrides:
getMaximumVolumeSize in class AbstractVolumeSupport
- Throws:
InternalException
CloudException
getMinimumVolumeSize
@Nonnull
public Storage<Gigabyte> getMinimumVolumeSize()
throws InternalException,
CloudException
- Throws:
InternalException
CloudException
getProviderTermForVolume
@Nonnull
public String getProviderTermForVolume(@Nonnull
Locale locale)
getVolume
@Nullable
public Volume getVolume(@Nonnull
String volumeId)
throws InternalException,
CloudException
- Specified by:
getVolume in interface VolumeSupport- Overrides:
getVolume in class AbstractVolumeSupport
- Throws:
InternalException
CloudException
getVolumeProductRequirement
@Nonnull
public Requirement getVolumeProductRequirement()
throws InternalException,
CloudException
- Specified by:
getVolumeProductRequirement in interface VolumeSupport- Overrides:
getVolumeProductRequirement in class AbstractVolumeSupport
- Throws:
InternalException
CloudException
isVolumeSizeDeterminedByProduct
public boolean isVolumeSizeDeterminedByProduct()
throws InternalException,
CloudException
- Specified by:
isVolumeSizeDeterminedByProduct in interface VolumeSupport- Overrides:
isVolumeSizeDeterminedByProduct in class AbstractVolumeSupport
- Throws:
InternalException
CloudException
isSubscribed
public boolean isSubscribed()
throws CloudException,
InternalException
- Throws:
CloudException
InternalException
listPossibleDeviceIds
@Nonnull
public Iterable<String> listPossibleDeviceIds(@Nonnull
Platform platform)
throws InternalException,
CloudException
- Throws:
InternalException
CloudException
listSupportedFormats
@Nonnull
public Iterable<VolumeFormat> listSupportedFormats()
throws InternalException,
CloudException
- Specified by:
listSupportedFormats in interface VolumeSupport- Overrides:
listSupportedFormats in class AbstractVolumeSupport
- Throws:
InternalException
CloudException
listVolumeProducts
@Nonnull
public Iterable<VolumeProduct> listVolumeProducts()
throws InternalException,
CloudException
- Specified by:
listVolumeProducts in interface VolumeSupport- Overrides:
listVolumeProducts in class AbstractVolumeSupport
- Throws:
InternalException
CloudException
listVolumeStatus
@Nonnull
public Iterable<ResourceStatus> listVolumeStatus()
throws InternalException,
CloudException
- Specified by:
listVolumeStatus in interface VolumeSupport- Overrides:
listVolumeStatus in class AbstractVolumeSupport
- Throws:
InternalException
CloudException
listVolumes
@Nonnull
public Iterable<Volume> listVolumes()
throws InternalException,
CloudException
- Throws:
InternalException
CloudException
remove
public void remove(@Nonnull
String volumeId)
throws InternalException,
CloudException
- Throws:
InternalException
CloudException
Copyright © 2013 enstratius, Inc.. All Rights Reserved.