FileUtil.HardLink (Hadoop 0.20.2-CDH3B4 API)
Date: 2011-02-21

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.apache.hadoop.fs
Class FileUtil.HardLink

    java.lang.Object
      org.apache.hadoop.fs.FileUtil.HardLink

Enclosing class:
  FileUtil

    public static class FileUtil.HardLink

extends Object

Class for creating hardlinks. Supports Unix, Cygwin, WindXP.

Constructor Summary
`FileUtil.HardLink()`

Method Summary
`static void` | `createHardLink(File target, File linkName)` Creates a hardlink
`static int` | `getLinkCount(File fileName)` Retrieves the number of links to the specified file.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### FileUtil.HardLink

    public FileUtil.HardLink()

Method Detail

### createHardLink

    public static void createHardLink(File target,
                                      File linkName)
                               throws IOException

  Creates a hardlink

  Throws:
    `IOException`

### getLinkCount

    public static int getLinkCount(File fileName)
                            throws IOException

  Retrieves the number of links to the specified file.

  Throws:
    `IOException`

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright © 2009 The Apache Software Foundation