org.dasein.cloud.vcloud.compute
Class DiskCapabilities

java.lang.Object
  extended by org.dasein.cloud.AbstractCapabilities<vCloud>
      extended by org.dasein.cloud.vcloud.compute.DiskCapabilities
All Implemented Interfaces:
Capabilities, VolumeCapabilities

public class DiskCapabilities
extends AbstractCapabilities<vCloud>
implements VolumeCapabilities

Describes the capabilities for supporting Dasein Cloud volumes as implemented in this Dasein Cloud implementation for vCloud.

Created by George Reese: 3/5/14 10:29 PM

Since:
2014.03
Version:
2014.03 initial version
Author:
George Reese

Field Summary
 
Fields inherited from interface org.dasein.cloud.Capabilities
LIMIT_UNKNOWN, LIMIT_UNLIMITED
 
Constructor Summary
DiskCapabilities(vCloud provider)
           
 
Method Summary
 boolean canAttach(VmState vmState)
           
 boolean canDetach(VmState vmState)
           
 int getMaximumVolumeCount()
           
 int getMaximumVolumeProductIOPS()
           
 Storage<Gigabyte> getMaximumVolumeSize()
           
 int getMaximumVolumeSizeIOPS()
           
 int getMinimumVolumeProductIOPS()
           
 Storage<Gigabyte> getMinimumVolumeSize()
           
 int getMinimumVolumeSizeIOPS()
           
 String getProviderTermForVolume(Locale locale)
           
 NamingConstraints getVolumeNamingConstraints()
           
 Requirement getVolumeProductRequirement()
           
 boolean isVolumeSizeDeterminedByProduct()
           
 Iterable<String> listPossibleDeviceIds(Platform platform)
           
 Iterable<VolumeFormat> listSupportedFormats()
           
 Requirement requiresVMOnCreate()
           
 
Methods inherited from class org.dasein.cloud.AbstractCapabilities
getAccountNumber, getContext, getProvider, getRegionId
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.dasein.cloud.Capabilities
getAccountNumber, getRegionId
 

Constructor Detail

DiskCapabilities

public DiskCapabilities(vCloud provider)
Method Detail

canAttach

public boolean canAttach(VmState vmState)
                  throws InternalException,
                         CloudException
Specified by:
canAttach in interface VolumeCapabilities
Throws:
InternalException
CloudException

canDetach

public boolean canDetach(VmState vmState)
                  throws InternalException,
                         CloudException
Specified by:
canDetach in interface VolumeCapabilities
Throws:
InternalException
CloudException

getMaximumVolumeCount

public int getMaximumVolumeCount()
                          throws InternalException,
                                 CloudException
Specified by:
getMaximumVolumeCount in interface VolumeCapabilities
Throws:
InternalException
CloudException

getMaximumVolumeProductIOPS

public int getMaximumVolumeProductIOPS()
                                throws InternalException,
                                       CloudException
Specified by:
getMaximumVolumeProductIOPS in interface VolumeCapabilities
Throws:
InternalException
CloudException

getMinimumVolumeProductIOPS

public int getMinimumVolumeProductIOPS()
                                throws InternalException,
                                       CloudException
Specified by:
getMinimumVolumeProductIOPS in interface VolumeCapabilities
Throws:
InternalException
CloudException

getMaximumVolumeSizeIOPS

public int getMaximumVolumeSizeIOPS()
                             throws InternalException,
                                    CloudException
Specified by:
getMaximumVolumeSizeIOPS in interface VolumeCapabilities
Throws:
InternalException
CloudException

getMinimumVolumeSizeIOPS

public int getMinimumVolumeSizeIOPS()
                             throws InternalException,
                                    CloudException
Specified by:
getMinimumVolumeSizeIOPS in interface VolumeCapabilities
Throws:
InternalException
CloudException

getMaximumVolumeSize

public Storage<Gigabyte> getMaximumVolumeSize()
                                       throws InternalException,
                                              CloudException
Specified by:
getMaximumVolumeSize in interface VolumeCapabilities
Throws:
InternalException
CloudException

getMinimumVolumeSize

@Nonnull
public Storage<Gigabyte> getMinimumVolumeSize()
                                       throws InternalException,
                                              CloudException
Specified by:
getMinimumVolumeSize in interface VolumeCapabilities
Throws:
InternalException
CloudException

getVolumeNamingConstraints

@Nonnull
public NamingConstraints getVolumeNamingConstraints()
                                             throws CloudException,
                                                    InternalException
Specified by:
getVolumeNamingConstraints in interface VolumeCapabilities
Throws:
CloudException
InternalException

getProviderTermForVolume

@Nonnull
public String getProviderTermForVolume(@Nonnull
                                               Locale locale)
Specified by:
getProviderTermForVolume in interface VolumeCapabilities

getVolumeProductRequirement

@Nonnull
public Requirement getVolumeProductRequirement()
                                        throws InternalException,
                                               CloudException
Specified by:
getVolumeProductRequirement in interface VolumeCapabilities
Throws:
InternalException
CloudException

isVolumeSizeDeterminedByProduct

public boolean isVolumeSizeDeterminedByProduct()
                                        throws InternalException,
                                               CloudException
Specified by:
isVolumeSizeDeterminedByProduct in interface VolumeCapabilities
Throws:
InternalException
CloudException

listPossibleDeviceIds

@Nonnull
public Iterable<String> listPossibleDeviceIds(@Nonnull
                                                      Platform platform)
                                       throws InternalException,
                                              CloudException
Specified by:
listPossibleDeviceIds in interface VolumeCapabilities
Throws:
InternalException
CloudException

listSupportedFormats

@Nonnull
public Iterable<VolumeFormat> listSupportedFormats()
                                            throws InternalException,
                                                   CloudException
Specified by:
listSupportedFormats in interface VolumeCapabilities
Throws:
InternalException
CloudException

requiresVMOnCreate

@Nonnull
public Requirement requiresVMOnCreate()
                               throws InternalException,
                                      CloudException
Specified by:
requiresVMOnCreate in interface VolumeCapabilities
Throws:
InternalException
CloudException


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