FsDatasetSpi.Factory (Apache Hadoop HDFS 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.server.datanode.fsdataset, interface: FsDatasetSpi, class: Factory

Package org.apache.hadoop.hdfs.server.datanode.fsdataset

# Class FsDatasetSpi.Factory<D extends FsDatasetSpi<?>>

java.lang.Object
org.apache.hadoop.hdfs.server.datanode.fsdataset.FsDatasetSpi.Factory<D>

Direct Known Subclasses:
  `FsDatasetFactory`

Enclosing interface:
  FsDatasetSpi<V extends FsVolumeSpi>

public abstract static class FsDatasetSpi.Factory<D extends FsDatasetSpi<?>> extends Object
A factory for creating `FsDatasetSpi` objects.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `Factory()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static FsDatasetSpi.Factory<?>`
  `getFactory(org.apache.hadoop.conf.Configuration conf)`
  `boolean`
  `isSimulated()`
  Does the factory create simulated objects?
  `abstract D`
  `newInstance(DataNode datanode, DataStorage storage, org.apache.hadoop.conf.Configuration conf)`
  Create a new object.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### Factory

    public Factory()

- ## Method Details

  - ### getFactory

    public static FsDatasetSpi.Factory<?> getFactory(org.apache.hadoop.conf.Configuration conf)
    Returns:
      the configured factory.

  - ### newInstance

    public abstract D newInstance(DataNode datanode, DataStorage storage, org.apache.hadoop.conf.Configuration conf) throws IOException
    Create a new object.
    Throws:
      `IOException`

  - ### isSimulated

    public boolean isSimulated()
    Does the factory create simulated objects?