Package org.apache.hadoop.fs
Class DU
java.lang.Object
org.apache.hadoop.fs.CachingGetSpaceUsed
org.apache.hadoop.fs.DU
- All Implemented Interfaces:
Closeable,AutoCloseable,GetSpaceUsed
Filesystem disk space usage statistics. Uses the unix 'du' program
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.hadoop.fs.GetSpaceUsed
GetSpaceUsed.Builder -
Field Summary
Fields inherited from class org.apache.hadoop.fs.CachingGetSpaceUsed
used -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.hadoop.fs.CachingGetSpaceUsed
close, getDirPath, getJitter, getRefreshInterval, getUsed, incDfsUsed, setShouldFirstRefresh, setUsed
-
Constructor Details
-
DU
@VisibleForTesting public DU(File path, long interval, long jitter, long initialUsed) throws IOException - Throws:
IOException
-
DU
- Throws:
IOException
-
-
Method Details
-
refresh
protected void refresh()- Specified by:
refreshin classCachingGetSpaceUsed
-
main
- Throws:
Exception
-