org.apache.hadoop.fs
Class DF

java.lang.Object
  extended byorg.apache.hadoop.fs.DF

public class DF
extends Object

Filesystem disk space usage statistics. Uses the unix 'df' program. Tested on Linux, FreeBSD, Cygwin.


Field Summary
static long DF_INTERVAL_DEFAULT
           
 
Constructor Summary
DF(String path, Configuration conf)
           
DF(String path, long dfInterval)
           
 
Method Summary
 long getAvailable()
           
 long getCapacity()
           
 String getDirPath()
           
 String getFilesystem()
           
 String getMount()
           
 int getPercentUsed()
           
 long getUsed()
           
static void main(String[] args)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

DF_INTERVAL_DEFAULT

public static final long DF_INTERVAL_DEFAULT
See Also:
Constant Field Values
Constructor Detail

DF

public DF(String path,
          Configuration conf)
   throws IOException

DF

public DF(String path,
          long dfInterval)
   throws IOException
Method Detail

getDirPath

public String getDirPath()

getFilesystem

public String getFilesystem()
                     throws IOException
Throws:
IOException

getCapacity

public long getCapacity()
                 throws IOException
Throws:
IOException

getUsed

public long getUsed()
             throws IOException
Throws:
IOException

getAvailable

public long getAvailable()
                  throws IOException
Throws:
IOException

getPercentUsed

public int getPercentUsed()
                   throws IOException
Throws:
IOException

getMount

public String getMount()
                throws IOException
Throws:
IOException

toString

public String toString()

main

public static void main(String[] args)
                 throws Exception
Throws:
Exception


Copyright © 2006 The Apache Software Foundation