## Uses of Interface
org.apache.hadoop.hdfs.server.datanode.fsdataset.FsVolumeSpi

- Packages that use FsVolumeSpi
  Package | Description
  --- | ---
  org.apache.hadoop.hdfs.server.datanode |
  org.apache.hadoop.hdfs.server.datanode.checker | Datanode support for running disk checks.
  org.apache.hadoop.hdfs.server.datanode.fsdataset |
  org.apache.hadoop.hdfs.server.datanode.fsdataset.impl |

- - ### Uses of FsVolumeSpi in org.apache.hadoop.hdfs.server.datanode

    Methods in org.apache.hadoop.hdfs.server.datanode with parameters of type FsVolumeSpi
    Modifier and Type | Method and Description
    --- | ---
    `ReplicaBuilder` | ReplicaBuilder.`setFsVolume(FsVolumeSpi volume)`
    `static void` | LocalReplica.`truncateBlock(FsVolumeSpi volume, File blockFile, File metaFile, long oldlen, long newlen, org.apache.hadoop.hdfs.server.datanode.FileIoProvider fileIoProvider)`

    Constructors in org.apache.hadoop.hdfs.server.datanode with parameters of type FsVolumeSpi
    Constructor and Description
    `FinalizedReplica(org.apache.hadoop.hdfs.protocol.Block block, FsVolumeSpi vol, File dir)` Constructor
    `FinalizedReplica(org.apache.hadoop.hdfs.protocol.Block block, FsVolumeSpi vol, File dir, byte[] checksum)` Constructor
    `FinalizedReplica(long blockId, long len, long genStamp, FsVolumeSpi vol, File dir)` Constructor.
    `FinalizedReplica(long blockId, long len, long genStamp, FsVolumeSpi vol, File dir, byte[] checksum)` Constructor.
    `LocalReplicaInPipeline(long blockId, long genStamp, FsVolumeSpi vol, File dir, long bytesToReserve)` Constructor for a zero length replica.
    `ReplicaBeingWritten(org.apache.hadoop.hdfs.protocol.Block block, FsVolumeSpi vol, File dir, Thread writer)` Constructor.
    `ReplicaBeingWritten(long blockId, long genStamp, FsVolumeSpi vol, File dir, long bytesToReserve)` Constructor for a zero length replica.
    `ReplicaBeingWritten(long blockId, long len, long genStamp, FsVolumeSpi vol, File dir, Thread writer, long bytesToReserve)` Constructor.
    `ReplicaWaitingToBeRecovered(org.apache.hadoop.hdfs.protocol.Block block, FsVolumeSpi vol, File dir)` Constructor
    `ReplicaWaitingToBeRecovered(long blockId, long len, long genStamp, FsVolumeSpi vol, File dir)` Constructor
    `ReportCompiler(org.apache.hadoop.hdfs.server.datanode.DataNode datanode, FsVolumeSpi volume)` Create a report compiler for the given volume on the given datanode.

  - ### Uses of FsVolumeSpi in org.apache.hadoop.hdfs.server.datanode.checker

    Methods in org.apache.hadoop.hdfs.server.datanode.checker with annotations of type with type parameters of type that implement declared as with annotations of type with type parameters of type with annotations of type with annotations of type with type parameters of type that return that return types with arguments of type with parameters of type with type arguments of type that throw with annotations of type with annotations of type with parameters of type with type arguments of type that throw FsVolumeSpi
    Modifier and Type | Method and Description
    --- | ---
    `Set<FsVolumeSpi>` | DatasetVolumeChecker.`checkAllVolumes(org.apache.hadoop.hdfs.server.datanode.fsdataset.FsDatasetSpi<? extends FsVolumeSpi> dataset)` Run checks against all volumes of a dataset.

    Methods in org.apache.hadoop.hdfs.server.datanode.checker with annotations of type with type parameters of type that implement declared as with annotations of type with type parameters of type with annotations of type with annotations of type with type parameters of type that return that return types with arguments of type with parameters of type with type arguments of type that throw with annotations of type with annotations of type with parameters of type with type arguments of type that throw FsVolumeSpi
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | DatasetVolumeChecker.`checkVolume(FsVolumeSpi volume, DatasetVolumeChecker.Callback callback)` Check a single volume asynchronously, returning a `ListenableFuture` that can be used to retrieve the final result.

    Method parameters in org.apache.hadoop.hdfs.server.datanode.checker with annotations of type with type parameters of type that implement declared as with annotations of type with type parameters of type with annotations of type with annotations of type with type parameters of type that return that return types with arguments of type with parameters of type with type arguments of type that throw with annotations of type with annotations of type with parameters of type with type arguments of type that throw FsVolumeSpi
    Modifier and Type | Method and Description
    --- | ---
    `void` | DatasetVolumeChecker.Callback.`call(Set<FsVolumeSpi> healthyVolumes, Set<FsVolumeSpi> failedVolumes)`
    `void` | DatasetVolumeChecker.Callback.`call(Set<FsVolumeSpi> healthyVolumes, Set<FsVolumeSpi> failedVolumes)`
    `Set<FsVolumeSpi>` | DatasetVolumeChecker.`checkAllVolumes(org.apache.hadoop.hdfs.server.datanode.fsdataset.FsDatasetSpi<? extends FsVolumeSpi> dataset)` Run checks against all volumes of a dataset.

  - ### Uses of FsVolumeSpi in org.apache.hadoop.hdfs.server.datanode.fsdataset

    Classes in org.apache.hadoop.hdfs.server.datanode.fsdataset with type parameters of type FsVolumeSpi
    Modifier and Type | Class and Description
    --- | ---
    `class` | `AvailableSpaceVolumeChoosingPolicy<V extends FsVolumeSpi>` A DN volume choosing policy which takes into account the amount of free space on each of the available volumes when considering where to assign a new replica allocation.
    `class` | `RoundRobinVolumeChoosingPolicy<V extends FsVolumeSpi>` Choose volumes with the same storage type in round-robin order.

    Methods in org.apache.hadoop.hdfs.server.datanode.fsdataset that return FsVolumeSpi
    Modifier and Type | Method and Description
    --- | ---
    `FsVolumeSpi` | FsDatasetSpi.FsVolumeReferences.`get(int index)` Get the volume for a given index.
    `FsVolumeSpi` | FsVolumeSpi.ScanInfo.`getVolume()` Returns the volume that contains the block that this object describes.
    `FsVolumeSpi` | FsVolumeReference.`getVolume()` Returns the underlying volume object.

    Methods in org.apache.hadoop.hdfs.server.datanode.fsdataset that return types with arguments of type FsVolumeSpi
    Modifier and Type | Method and Description
    --- | ---
    `Iterator<FsVolumeSpi>` | FsDatasetSpi.FsVolumeReferences.`iterator()`

    Constructors in org.apache.hadoop.hdfs.server.datanode.fsdataset with parameters of type FsVolumeSpi
    Constructor and Description
    `ReplicaOutputStreams(OutputStream dataOut, OutputStream checksumOut, org.apache.hadoop.util.DataChecksum checksum, FsVolumeSpi volume, org.apache.hadoop.hdfs.server.datanode.FileIoProvider fileIoProvider)` Create an object with a data output stream, a checksum output stream and a checksum.
    `ScanInfo(long blockId, File basePath, String blockFile, String metaFile, FsVolumeSpi vol)` Create a ScanInfo object for a block.
    `ScanInfo(long blockId, FsVolumeSpi vol, FileRegion fileRegion, long length)` Create a ScanInfo object for a block.

  - ### Uses of FsVolumeSpi in org.apache.hadoop.hdfs.server.datanode.fsdataset.impl

    Methods in org.apache.hadoop.hdfs.server.datanode.fsdataset.impl that return types with arguments of type FsVolumeSpi
    Modifier and Type | Method and Description
    --- | ---
    `Map<FsVolumeSpi,IOException>` | AddBlockPoolException.`getFailingVolumes()`

    Constructor parameters in org.apache.hadoop.hdfs.server.datanode.fsdataset.impl with type arguments of type FsVolumeSpi
    Constructor and Description
    `AddBlockPoolException(Map<FsVolumeSpi,IOException> unhealthyDataDirs)`

Copyright © 2008–2022 Apache Software Foundation. All rights reserved.