Package org.apache.hadoop.yarn.api
Interface CsiAdaptorProtocol
- All Known Subinterfaces:
CsiAdaptorPlugin
public interface CsiAdaptorProtocol
CSI adaptor delegates all the calls from YARN to a CSI driver.
-
Method Summary
Modifier and TypeMethodDescriptiongetPluginInfo(GetPluginInfoRequest request) Get plugin info from the CSI driver.Publish the volume on a node manager, the volume will be mounted to the local file system and become visible for clients.This is a reverse operation ofnodePublishVolume(NodePublishVolumeRequest), it un-mounts the volume from given node.Validate if the volume capacity can be satisfied on the underneath storage system.
-
Method Details
-
getPluginInfo
Get plugin info from the CSI driver. The driver usually returns the name of the driver and its version.- Parameters:
request- get plugin info request.- Returns:
- response that contains driver name and its version.
- Throws:
YarnException- exceptions from yarn servers.IOException- io error occur.
-
validateVolumeCapacity
ValidateVolumeCapabilitiesResponse validateVolumeCapacity(ValidateVolumeCapabilitiesRequest request) throws YarnException, IOException Validate if the volume capacity can be satisfied on the underneath storage system. This method responses if the capacity can be satisfied or not, with a detailed message.- Parameters:
request- validate volume capability request.- Returns:
- validation response.
- Throws:
YarnException- exceptions from yarn servers.IOException- io error occur.
-
nodePublishVolume
NodePublishVolumeResponse nodePublishVolume(NodePublishVolumeRequest request) throws YarnException, IOException Publish the volume on a node manager, the volume will be mounted to the local file system and become visible for clients.- Parameters:
request- publish volume request.- Returns:
- publish volume response.
- Throws:
YarnException- exceptions from yarn servers.IOException- io error occur.
-
nodeUnpublishVolume
NodeUnpublishVolumeResponse nodeUnpublishVolume(NodeUnpublishVolumeRequest request) throws YarnException, IOException This is a reverse operation ofnodePublishVolume(NodePublishVolumeRequest), it un-mounts the volume from given node.- Parameters:
request- un-publish volume request.- Returns:
- un-publish volume response.
- Throws:
YarnException- exceptions from yarn servers.IOException- io error occur.
-