org.apache.hadoop.fs
Class DF

java.lang.Object
  extended by org.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(File path, Configuration conf)
           
DF(File path, long dfInterval)
           
 
Method Summary
 long getAvailable()
           
 long getAvailableSkipRefresh()
           
 long getCapacity()
           
 long getCapacitySkipRefresh()
           
 String getDirPath()
           
 String getFilesystem()
           
 String getMount()
           
 int getPercentUsed()
           
 int getPercentUsedSkipRefresh()
           
 long getUsed()
           
 long getUsedSkipRefresh()
           
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(File path,
          Configuration conf)
   throws IOException
Throws:
IOException

DF

public DF(File path,
          long dfInterval)
   throws IOException
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

getCapacitySkipRefresh

public long getCapacitySkipRefresh()

getUsedSkipRefresh

public long getUsedSkipRefresh()

getAvailableSkipRefresh

public long getAvailableSkipRefresh()

getPercentUsedSkipRefresh

public int getPercentUsedSkipRefresh()

toString

public String toString()
Overrides:
toString in class Object

main

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


Copyright © 2006 The Apache Software Foundation