Package org.apache.hadoop.fs
Class DFCachingGetSpaceUsed
java.lang.Object
org.apache.hadoop.fs.CachingGetSpaceUsed
org.apache.hadoop.fs.DFCachingGetSpaceUsed
- All Implemented Interfaces:
Closeable,AutoCloseable,GetSpaceUsed
@LimitedPrivate({"HDFS","MapReduce"})
@Evolving
public class DFCachingGetSpaceUsed
extends CachingGetSpaceUsed
Fast but inaccurate class to tell how much space HDFS is using.
This class makes the assumption that the entire mount is used for
HDFS and that no two hdfs data dirs are on the same disk.
To use set fs.getspaceused.classname
to org.apache.hadoop.fs.DFCachingGetSpaceUsed in your core-site.xml
-
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
-
DFCachingGetSpaceUsed
- Throws:
IOException
-
-
Method Details
-
refresh
protected void refresh()- Specified by:
refreshin classCachingGetSpaceUsed
-