public class RoundRobinVolumesPolicy extends Object implements org.apache.hadoop.hdfs.server.datanode.BlockVolumeChoosingPolicy
| Constructor and Description |
|---|
RoundRobinVolumesPolicy() |
| Modifier and Type | Method and Description |
|---|---|
FSDatasetInterface.FSVolumeInterface |
chooseVolume(List<FSDatasetInterface.FSVolumeInterface> volumes,
long blockSize)
Returns a specific FSVolume after applying a suitable choice algorithm
to place a given block, given a list of FSVolumes and the block
size sought for storage.
|
public RoundRobinVolumesPolicy()
public FSDatasetInterface.FSVolumeInterface chooseVolume(List<FSDatasetInterface.FSVolumeInterface> volumes, long blockSize) throws IOException
org.apache.hadoop.hdfs.server.datanode.BlockVolumeChoosingPolicychooseVolume in interface org.apache.hadoop.hdfs.server.datanode.BlockVolumeChoosingPolicyvolumes - - the array of FSVolumes that are available.blockSize - - the size of the block for which a volume is sought.IOException - when disks are unavailable or are full.Copyright © 2013 Apache Software Foundation. All Rights Reserved.