Save This Page
Home » hadoop-0.14.4 » org.apache » hadoop » dfs » [javadoc | source]
org.apache.hadoop.dfs
public class: DistributedFileSystem [javadoc | source]
java.lang.Object
   java.io.FileSystem
      org.apache.hadoop.dfs.DistributedFileSystem
Implementation of the abstract FileSystem for the DFS system. This object is the way end-user code interacts with a Hadoop DistributedFileSystem.
Field Summary
 DFSClient dfs     
Fields inherited from java.io.FileSystem:
BA_EXISTS,  BA_REGULAR,  BA_DIRECTORY,  BA_HIDDEN,  ACCESS_READ,  ACCESS_WRITE,  ACCESS_EXECUTE,  SPACE_TOTAL,  SPACE_FREE,  SPACE_USABLE
Constructor:
 public DistributedFileSystem() 
 public DistributedFileSystem(InetSocketAddress namenode,
    Configuration conf) throws IOException 
    Method from org.apache.hadoop.dfs.DistributedFileSystem Summary:
    close,   create,   delete,   distributedUpgradeProgress,   exists,   finalizeUpgrade,   getClient,   getContentLength,   getDataNodeStats,   getDefaultBlockSize,   getDefaultReplication,   getFileCacheHints,   getFileStatus,   getName,   getRawCapacity,   getRawUsed,   getUri,   getWorkingDirectory,   initialize,   listPaths,   lock,   metaSave,   mkdirs,   open,   refreshNodes,   release,   rename,   reportChecksumFailure,   setReplication,   setSafeMode,   setWorkingDirectory,   toString
    Methods from java.io.FileSystem:
    canonicalize,   checkAccess,   compare,   createDirectory,   createFileExclusively,   delete,   fromURIPath,   getBooleanAttributes,   getDefaultParent,   getFileSystem,   getLastModifiedTime,   getLength,   getPathSeparator,   getSeparator,   getSpace,   hashCode,   isAbsolute,   list,   listRoots,   normalize,   prefixLength,   rename,   resolve,   resolve,   setLastModifiedTime,   setPermission,   setReadOnly
    Methods from java.lang.Object:
    equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
    Method from org.apache.hadoop.dfs.DistributedFileSystem Detail:
     public  void close() throws IOException 
     public FSDataOutputStream create(Path f,
        boolean overwrite,
        int bufferSize,
        short replication,
        long blockSize,
        Progressable progress) throws IOException 
     public boolean delete(Path f) throws IOException 
      Get rid of Path f, whether a true file or dir.
     public UpgradeStatusReport distributedUpgradeProgress(UpgradeAction action) throws IOException 
     public boolean exists(Path f) throws IOException 
     public  void finalizeUpgrade() throws IOException 
      Finalize previously upgraded files system state.
     DFSClient getClient() 
     public long getContentLength(Path f) throws IOException 
     public DatanodeInfo[] getDataNodeStats() throws IOException 
      Return statistics for each datanode.
     public long getDefaultBlockSize() 
     public short getDefaultReplication() 
     public String[][] getFileCacheHints(Path f,
        long start,
        long len) throws IOException 
     public FileStatus getFileStatus(Path f) throws IOException 
      Returns the stat information about the file.
     public String getName() 
    Deprecated!
     public long getRawCapacity() throws IOException 
      Return the total raw capacity of the filesystem, disregarding replication .
     public long getRawUsed() throws IOException 
      Return the total raw used space in the filesystem, disregarding replication .
     public URI getUri() 
     public Path getWorkingDirectory() 
     public  void initialize(URI uri,
        Configuration conf) throws IOException 
     public Path[] listPaths(Path f) throws IOException 
     public  void lock(Path f,
        boolean shared) throws IOException 
    Deprecated!
     public  void metaSave(String pathname) throws IOException 
     public boolean mkdirs(Path f) throws IOException 
     public FSDataInputStream open(Path f,
        int bufferSize) throws IOException 
     public  void refreshNodes() throws IOException 
     public  void release(Path f) throws IOException 
    Deprecated!
     public boolean rename(Path src,
        Path dst) throws IOException 
      Rename files/dirs
     public boolean reportChecksumFailure(Path f,
        FSDataInputStream in,
        long inPos,
        FSDataInputStream sums,
        long sumsPos) 
      We need to find the blocks that didn't match. Likely only one is corrupt but we will report both to the namenode. In the future, we can consider figuring out exactly which block is corrupt.
     public boolean setReplication(Path src,
        short replication) throws IOException 
     public boolean setSafeMode(FSConstants.SafeModeAction action) throws IOException 
      Enter, leave or get safe mode.
     public  void setWorkingDirectory(Path dir) 
     public String toString()