public class AvailableSpaceVolumeChoosingPolicy<V extends FsVolumeSpi> extends Object implements org.apache.hadoop.hdfs.server.datanode.fsdataset.VolumeChoosingPolicy<V>, Configurable
| Constructor and Description |
|---|
AvailableSpaceVolumeChoosingPolicy() |
| Modifier and Type | Method and Description |
|---|---|
V |
chooseVolume(List<V> volumes,
long replicaSize)
Choose a volume to place a replica,
given a list of volumes and the replica size sought for storage.
|
Configuration |
getConf() |
void |
setConf(Configuration conf) |
public AvailableSpaceVolumeChoosingPolicy()
public void setConf(Configuration conf)
setConf in interface Configurablepublic Configuration getConf()
getConf in interface Configurablepublic V chooseVolume(List<V> volumes, long replicaSize) throws IOException
org.apache.hadoop.hdfs.server.datanode.fsdataset.VolumeChoosingPolicychooseVolume in interface org.apache.hadoop.hdfs.server.datanode.fsdataset.VolumeChoosingPolicy<V extends FsVolumeSpi>volumes - - a list of available volumes.replicaSize - - the size of the replica for which a volume is sought.IOException - when disks are unavailable or are full.Copyright © 2018 CERN. All Rights Reserved.