org.apache.hadoop.fs
Class DU
java.lang.Object
org.apache.hadoop.util.Shell
org.apache.hadoop.fs.DU
public class DU
- extends Shell
Filesystem disk space usage statistics. Uses the unix 'du' program
DU
public DU(File path,
long interval)
throws IOException
- Throws:
IOException
DU
public DU(File path,
Configuration conf)
throws IOException
- Throws:
IOException
decDfsUsed
public void decDfsUsed(long value)
incDfsUsed
public void incDfsUsed(long value)
getUsed
public long getUsed()
throws IOException
- Throws:
IOException
getDirPath
public String getDirPath()
toString
public String toString()
- Overrides:
toString
in class Object
getExecString
protected String[] getExecString()
- Description copied from class:
Shell
- return an array containing the command name & its parameters
- Specified by:
getExecString
in class Shell
parseExecResult
protected void parseExecResult(BufferedReader lines)
throws IOException
- Description copied from class:
Shell
- Parse the execution result
- Specified by:
parseExecResult
in class Shell
- Throws:
IOException
main
public static void main(String[] args)
throws Exception
- Throws:
Exception
Copyright © 2006 The Apache Software Foundation