org.apache.hadoop.hdfs.server.datanode
Class FSDatasetInterface.Factory
java.lang.Object
org.apache.hadoop.hdfs.server.datanode.FSDatasetInterface.Factory
- Enclosing interface:
- org.apache.hadoop.hdfs.server.datanode.FSDatasetInterface
public abstract static class FSDatasetInterface.Factory
- extends Object
A factory for creating FSDatasetInterface objects.
Method Summary |
abstract org.apache.hadoop.hdfs.server.datanode.FSDatasetInterface |
createFSDatasetInterface(org.apache.hadoop.hdfs.server.datanode.DataNode datanode,
org.apache.hadoop.hdfs.server.datanode.DataStorage storage,
org.apache.hadoop.conf.Configuration conf)
Create a FSDatasetInterface object. |
static FSDatasetInterface.Factory |
getFactory(org.apache.hadoop.conf.Configuration conf)
|
boolean |
isSimulated()
Does the factory create simulated objects? |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FSDatasetInterface.Factory
public FSDatasetInterface.Factory()
getFactory
public static FSDatasetInterface.Factory getFactory(org.apache.hadoop.conf.Configuration conf)
- Returns:
- the configured factory.
createFSDatasetInterface
public abstract org.apache.hadoop.hdfs.server.datanode.FSDatasetInterface createFSDatasetInterface(org.apache.hadoop.hdfs.server.datanode.DataNode datanode,
org.apache.hadoop.hdfs.server.datanode.DataStorage storage,
org.apache.hadoop.conf.Configuration conf)
throws IOException
- Create a FSDatasetInterface object.
- Throws:
IOException
isSimulated
public boolean isSimulated()
- Does the factory create simulated objects?
Copyright © 2012 Apache Software Foundation. All Rights Reserved.