public class BlockVolumeServiceImpl extends BaseBlockStorageServices implements BlockVolumeService
| Constructor and Description |
|---|
BlockVolumeServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
Volume |
create(Volume volume)
Creates a new Block Storage Volume
|
ActionResponse |
delete(String volumeId)
Deletes the specified volume
|
ActionResponse |
forceDelete(String volumeId)
Attempt forced removal of volume, regardless of the state.
|
Volume |
get(String volumeId)
Gets a Block Storage volume by ID
|
List<? extends Volume> |
list()
Lists summary information for all Block Storage volumes that the tenant who submits the request can access.
|
List<? extends VolumeType> |
listVolumeTypes()
The volume type defines the characteristics of a volume
|
ActionResponse |
migrate(String volumeId,
String hostService,
boolean forceHostCopy)
migrate a volume to another host and service
|
BlockVolumeTransferService |
transfer()
Returns the API used to transfer a Volume from one tenant/project to another
|
ActionResponse |
update(String volumeId,
String name,
String description)
OpenStack only allows name or description to be updated.
|
VolumeUploadImage |
uploadToImage(String volumeId,
UploadImageData data)
Uploads a volume to the image service
|
public List<? extends VolumeType> listVolumeTypes()
listVolumeTypes in interface BlockVolumeServicepublic List<? extends Volume> list()
list in interface BlockVolumeServicepublic Volume get(String volumeId)
get in interface BlockVolumeServicevolumeId - the volume identifierpublic ActionResponse delete(String volumeId)
delete in interface BlockVolumeServicevolumeId - the volume identifierpublic ActionResponse forceDelete(String volumeId)
forceDelete in interface BlockVolumeServicevolumeId - the volume idpublic Volume create(Volume volume)
create in interface BlockVolumeServicevolume - the volume for createpublic ActionResponse update(String volumeId, String name, String description)
update in interface BlockVolumeServicevolumeId - the volume idname - the name to update (null indicates no name update)description - the description to update (null indicates no description update)public ActionResponse migrate(String volumeId, String hostService, boolean forceHostCopy)
BlockVolumeServicemigrate in interface BlockVolumeServicevolumeId - the volume idhostService - the destination host and service ,like kvmnode002021.cnsuning.com@lvmdriverpublic VolumeUploadImage uploadToImage(String volumeId, UploadImageData data)
BlockVolumeServiceuploadToImage in interface BlockVolumeServicevolumeId - the volume identifier to uploaddata - the data about the volume being uploaded (required)public BlockVolumeTransferService transfer()
BlockVolumeServicetransfer in interface BlockVolumeService