|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.util.DiskChecker
public class DiskChecker
Class that provides utility functions for checking disk problem
Nested Class Summary | |
---|---|
static class |
DiskChecker.DiskErrorException
|
static class |
DiskChecker.DiskOutOfSpaceException
|
Constructor Summary | |
---|---|
DiskChecker()
|
Method Summary | |
---|---|
static void |
checkDir(java.io.File dir)
|
static boolean |
mkdirsWithExistsCheck(java.io.File dir)
The semantics of mkdirsWithExistsCheck method is different from the mkdirs method provided in the Sun's java.io.File class in the following way: While creating the non-existent parent directories, this method checks for the existence of those directories if the mkdir fails at any point (since that directory might have just been created by some other process). |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DiskChecker()
Method Detail |
---|
public static boolean mkdirsWithExistsCheck(java.io.File dir)
dir
-
public static void checkDir(java.io.File dir) throws DiskChecker.DiskErrorException
DiskChecker.DiskErrorException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |