public interface Storage<C extends IConnection> extends Pluggable
| Modifier and Type | Method and Description |
|---|---|
Volume |
createVolume(C device,
Pool pool,
Volume volume)
Creates a new volume.
|
void |
deleteVolume(C device,
Pool pool,
java.lang.String uuid)
Deletes the given volume.
|
Pool |
getPool(C device,
java.lang.String poolName)
Get the information of the given pool.
|
Volume |
getVolume(C device,
Pool pool,
java.lang.String uuid)
Gets the information of the given volume.
|
Address |
grantAccess(C device,
Pool pool,
java.lang.String volumeUuid,
ClientDetails clientDetails)
Allow the provided client to access the given volume.
|
java.util.List<Pool> |
listPools(C device)
Get all the pools defined in the given device.
|
java.util.List<Volume> |
listVolumes(C device,
Pool pool)
Gets all the volumes in the given pool.
|
Volume |
resizeVolume(C device,
Pool pool,
Volume volume)
Updates an existing volume.
|
void |
revokeAccess(C device,
Pool pool,
java.lang.String volumeUuid,
ClientDetails clientDetails)
Deny access for the provided client to the given volume.
|
close, getConstraint, validateConfigurationjava.util.List<Pool> listPools(C device) throws HypervisorPluginException
The storage pools are the containers for the volumes that will be created by Abiquo.
device - The storage device where to find the pools.HypervisorPluginException - If the pools can not be enumerated.Pool getPool(C device, java.lang.String poolName) throws HypervisorPluginException
The storage pools are the containers for the volumes that will be created by Abiquo.
device - The storage device where to find the pool.poolName - The name of the pool to retrieve.HypervisorPluginException - If the requested pool cannot be retrieved.java.util.List<Volume> listVolumes(C device, Pool pool) throws HypervisorPluginException
Volumes are block devices that will be attached to the virtual machines.
device - The device where the volumes are.pool - The pool where the volumes are.HypervisorPluginException - If the volumes can not be enumerated.Volume getVolume(C device, Pool pool, java.lang.String uuid) throws HypervisorPluginException
Volumes are block devices that will be attached to the virtual machines.
device - The device where the volumes is.pool - The pool where the volume is.uuid - The uuid of the volume to retrieve.HypervisorPluginException - If the requested volume can not be retrieved.Volume createVolume(C device, Pool pool, Volume volume) throws HypervisorPluginException
Volumes are block devices that will be attached to the virtual machines.
device - The device where the volumes will be created.pool - The pool where the volume will be created.volume - The volume information.HypervisorPluginException - If the volume cannot be created.void deleteVolume(C device, Pool pool, java.lang.String uuid) throws HypervisorPluginException
Volumes are block devices that will be attached to the virtual machines.
device - The device where the volumes is.pool - The pool where the volume is.uuid - The uuid of the volume to delete.HypervisorPluginException - If the volume cannot be deleted.Volume resizeVolume(C device, Pool pool, Volume volume) throws HypervisorPluginException
Volumes are block devices that will be attached to the virtual machines.
device - The device where the volumes is.pool - The pool where the volume is.volume - The new volume information.HypervisorPluginException - If the volume cannot be modified.Address grantAccess(C device, Pool pool, java.lang.String volumeUuid, ClientDetails clientDetails) throws HypervisorPluginException
This method is used to grant access to the given client to the volume identified by the given UUID.
device - The device where the volumes is.pool - The pool where the volume is.volumeUuid - The uuid of the volume.clientDetails - The details of the client accessing the volume.HypervisorPluginException - If the access to the volume cannot be granted.void revokeAccess(C device, Pool pool, java.lang.String volumeUuid, ClientDetails clientDetails) throws HypervisorPluginException
This method is used to revoke access for the given iSCSI client.
device - The device where the volumes is.pool - The pool where the volume is.volumeUuid - The uuid of the volume.clientDetails - The details of the client accessing the volume.HypervisorPluginException - If the access to the volume cannot be granted.Copyright © 2008-2019 Abiquo Holdings S.L.. All Rights Reserved.