java.io.Closeable, java.lang.AutoCloseable, org.apache.hadoop.service.Service, VolumeManagerpublic class VolumeManagerImpl extends org.apache.hadoop.service.AbstractService implements VolumeManager
| Constructor | Description |
|---|---|
VolumeManagerImpl() |
| Modifier and Type | Method | Description |
|---|---|---|
Volume |
addOrGetVolume(Volume volume) |
Start to supervise on a volume.
|
org.apache.hadoop.yarn.api.CsiAdaptorProtocol |
getAdaptorByDriverName(java.lang.String driverName) |
Returns a CsiAdaptorProtocol client by the given driver name,
returns null if no adaptor is found for the driver, that means
the driver has not registered to the volume manager yet enhance not valid.
|
VolumeStates |
getVolumeStates() |
|
void |
registerCsiDriverAdaptor(java.lang.String driverName,
org.apache.hadoop.yarn.api.CsiAdaptorProtocol client) |
Register a csi-driver-adaptor to the volume manager.
|
java.util.concurrent.ScheduledFuture<VolumeProvisioningResults> |
schedule(VolumeProvisioningTask volumeProvisioningTask,
int delaySecond) |
Execute volume provisioning tasks as backend threads.
|
protected void |
serviceInit(org.apache.hadoop.conf.Configuration conf) |
|
protected void |
serviceStart() |
|
protected void |
serviceStop() |
close, getBlockers, getConfig, getFailureCause, getFailureState, getLifecycleHistory, getName, getServiceState, getStartTime, init, isInState, noteFailure, putBlocker, registerGlobalListener, registerServiceListener, removeBlocker, setConfig, start, stop, toString, unregisterGlobalListener, unregisterServiceListener, waitForServiceToStoppublic org.apache.hadoop.yarn.api.CsiAdaptorProtocol getAdaptorByDriverName(java.lang.String driverName)
getAdaptorByDriverName in interface VolumeManagerdriverName - the name of the driver@VisibleForTesting
public void registerCsiDriverAdaptor(java.lang.String driverName,
org.apache.hadoop.yarn.api.CsiAdaptorProtocol client)
VolumeManagerregisterCsiDriverAdaptor in interface VolumeManagerdriverName - driver name.client - csi adaptor protocol client.protected void serviceInit(org.apache.hadoop.conf.Configuration conf)
throws java.lang.Exception
serviceInit in class org.apache.hadoop.service.AbstractServicejava.lang.Exceptionprotected void serviceStart()
throws java.lang.Exception
serviceStart in class org.apache.hadoop.service.AbstractServicejava.lang.Exceptionprotected void serviceStop()
throws java.lang.Exception
serviceStop in class org.apache.hadoop.service.AbstractServicejava.lang.Exceptionpublic VolumeStates getVolumeStates()
getVolumeStates in interface VolumeManagerpublic Volume addOrGetVolume(Volume volume)
VolumeManageraddOrGetVolume in interface VolumeManagervolume - volume.public java.util.concurrent.ScheduledFuture<VolumeProvisioningResults> schedule(VolumeProvisioningTask volumeProvisioningTask, int delaySecond)
VolumeManagerschedule in interface VolumeManagervolumeProvisioningTask - A provisioning task encapsulates
all the logic required by a storage system to provision a volume.delaySecond - delay Second.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.