Class VolumeStates
java.lang.Object
org.apache.hadoop.yarn.server.resourcemanager.volume.csi.VolumeStates
Volume manager states, including all managed volumes and their states.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddVolumeIfAbsent(Volume volume) Add volume if it is not yet added.getVolume(org.apache.hadoop.yarn.server.volume.csi.VolumeId volumeId)
-
Constructor Details
-
VolumeStates
public VolumeStates()
-
-
Method Details
-
getVolume
-
addVolumeIfAbsent
Add volume if it is not yet added. If a new volume is added with a sameVolumeIdwith a existing volume, existing volume will be returned.- Parameters:
volume- volume to add- Returns:
- volume added or existing volume
-