AvailableSpaceVolumeChoosingPolicy, RoundRobinVolumeChoosingPolicy@Private
public interface VolumeChoosingPolicy<V extends FsVolumeSpi>
| Modifier and Type | Method | Description |
|---|---|---|
V |
chooseVolume(java.util.List<V> volumes,
long replicaSize,
java.lang.String storageId) |
Choose a volume to place a replica,
given a list of volumes and the replica size sought for storage.
|
V chooseVolume(java.util.List<V> volumes, long replicaSize, java.lang.String storageId) throws java.io.IOException
volumes - - a list of available volumes.replicaSize - - the size of the replica for which a volume is sought.storageId - - the storage id of the Volume nominated by the namenode.
This can usually be ignored by the VolumeChoosingPolicy.java.io.IOException - when disks are unavailable or are full.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.