java.io.Closeable, java.lang.AutoCloseable, GetSpaceUsed@LimitedPrivate({"HDFS","MapReduce"})
@Evolving
public class DU
extends CachingGetSpaceUsed
GetSpaceUsed.Builderused| Constructor | Description |
|---|---|
DU(java.io.File path,
long interval,
long jitter,
long initialUsed) |
|
DU(GetSpaceUsed.Builder builder) |
| Modifier and Type | Method | Description |
|---|---|---|
static void |
main(java.lang.String[] args) |
|
protected void |
refresh() |
close, getDirPath, getJitter, getRefreshInterval, getUsed, incDfsUsed, setShouldFirstRefresh, setUsed@VisibleForTesting
public DU(java.io.File path,
long interval,
long jitter,
long initialUsed)
throws java.io.IOException
java.io.IOExceptionpublic DU(GetSpaceUsed.Builder builder) throws java.io.IOException
java.io.IOExceptionprotected void refresh()
refresh in class CachingGetSpaceUsedpublic static void main(java.lang.String[] args)
throws java.lang.Exception
java.lang.ExceptionCopyright © 2008–2025 Apache Software Foundation. All rights reserved.