@InterfaceAudience.Private
@InterfaceStability.Unstable
public interface VolumeManager
Modifier and Type | Method and Description |
---|---|
Volume |
addOrGetVolume(Volume volume)
Start to supervise on a volume.
|
org.apache.hadoop.yarn.api.CsiAdaptorProtocol |
getAdaptorByDriverName(String driverName)
Returns the csi-driver-adaptor client from cache by the given driver name.
|
VolumeStates |
getVolumeStates() |
void |
registerCsiDriverAdaptor(String driverName,
org.apache.hadoop.yarn.api.CsiAdaptorProtocol client)
Register a csi-driver-adaptor to the volume manager.
|
ScheduledFuture<VolumeProvisioningResults> |
schedule(VolumeProvisioningTask volumeProvisioningTask,
int delaySecond)
Execute volume provisioning tasks as backend threads.
|
VolumeStates getVolumeStates()
Volume addOrGetVolume(Volume volume)
volume
- volume.ScheduledFuture<VolumeProvisioningResults> schedule(VolumeProvisioningTask volumeProvisioningTask, int delaySecond)
volumeProvisioningTask
- A provisioning task encapsulates
all the logic required by a storage system to provision a volume.delaySecond
- delay Second.void registerCsiDriverAdaptor(String driverName, org.apache.hadoop.yarn.api.CsiAdaptorProtocol client)
driverName
- driver name.client
- csi adaptor protocol client.org.apache.hadoop.yarn.api.CsiAdaptorProtocol getAdaptorByDriverName(String driverName)
driverName
- driver name.Copyright © 2008–2024 Apache Software Foundation. All rights reserved.