public class RoundRobinVolumeChoosingPolicy<V extends FsVolumeSpi> extends Object implements org.apache.hadoop.hdfs.server.datanode.fsdataset.VolumeChoosingPolicy<V>
Constructor and Description |
---|
RoundRobinVolumeChoosingPolicy() |
Modifier and Type | Method and Description |
---|---|
V |
chooseVolume(List<V> volumes,
long blockSize)
Choose a volume to place a replica,
given a list of volumes and the replica size sought for storage.
|
public RoundRobinVolumeChoosingPolicy()
public V chooseVolume(List<V> volumes, long blockSize) throws IOException
org.apache.hadoop.hdfs.server.datanode.fsdataset.VolumeChoosingPolicy
chooseVolume
in interface org.apache.hadoop.hdfs.server.datanode.fsdataset.VolumeChoosingPolicy<V extends FsVolumeSpi>
volumes
- - a list of available volumes.blockSize
- - the size of the replica for which a volume is sought.IOException
- when disks are unavailable or are full.Copyright © 2014 Apache Software Foundation. All Rights Reserved.