org.apache.hadoop.hdfs.server.datanode
Class FSDatasetInterface.Factory

java.lang.Object
  extended by 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.


Constructor Summary
FSDatasetInterface.Factory()
           
 
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
 

Constructor Detail

FSDatasetInterface.Factory

public FSDatasetInterface.Factory()
Method Detail

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.