org.dasein.cloud.vcloud.compute
Class DiskSupport

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

public class DiskSupport
extends AbstractVolumeSupport

Implements support for disks in vCloud 5.1 and beyond.

Created by George Reese: 2/10/13 12:10 PM

Author:
George Reese

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 deviceId)
           
 String createVolume(VolumeCreateOptions options)
           
 void detach(String volumeId, boolean force)
           
 DiskCapabilities getCapabilities()
           
 Storage<Gigabyte> getMinimumVolumeSize()
           
 String getProviderTermForVolume(Locale locale)
           
 Volume getVolume(String volumeId)
           
 boolean isSubscribed()
           
 Iterable<String> listPossibleDeviceIds(Platform platform)
           
 Iterable<Volume> listVolumes()
           
 Iterable<ResourceStatus> listVolumeStatus()
           
 void remove(String volumeId)
           
 
Methods inherited from class org.dasein.cloud.compute.AbstractVolumeSupport
create, detach, getContext, getMaximumVolumeCount, getMaximumVolumeSize, getProvider, getVolumeProductRequirement, isVolumeSizeDeterminedByProduct, listSupportedFormats, listVolumeProducts, listVolumes, mapServiceAction, removeTags, removeTags, toString, updateTags, updateTags
 
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 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

getCapabilities

@Nonnull
public DiskCapabilities getCapabilities()

getMinimumVolumeSize

@Nonnull
public Storage<Gigabyte> getMinimumVolumeSize()
                                       throws InternalException,
                                              CloudException
Throws:
InternalException
CloudException

getProviderTermForVolume

@Nonnull
public String getProviderTermForVolume(@Nonnull
                                               Locale locale)

getVolume

public Volume getVolume(@Nonnull
                        String volumeId)
                 throws InternalException,
                        CloudException
Specified by:
getVolume in interface VolumeSupport
Overrides:
getVolume in class AbstractVolumeSupport
Throws:
InternalException
CloudException

listPossibleDeviceIds

@Nonnull
public Iterable<String> listPossibleDeviceIds(@Nonnull
                                                      Platform platform)
                                       throws InternalException,
                                              CloudException
Throws:
InternalException
CloudException

listVolumeStatus

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

listVolumes

@Nonnull
public Iterable<Volume> listVolumes()
                             throws InternalException,
                                    CloudException
Throws:
InternalException
CloudException

isSubscribed

public boolean isSubscribed()
                     throws CloudException,
                            InternalException
Throws:
CloudException
InternalException

remove

public void remove(@Nonnull
                   String volumeId)
            throws InternalException,
                   CloudException
Throws:
InternalException
CloudException


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