@InterfaceAudience.LimitedPrivate(value={"HDFS","MapReduce"}) @InterfaceStability.Evolving public class DF extends Shell
Shell.ExitCodeException, Shell.ShellCommandExecutor| Modifier and Type | Field and Description |
|---|---|
static long |
DF_INTERVAL_DEFAULT
Default DF refresh interval.
|
isSetsidAvailable, LINK_COMMAND, LINUX, LOG, READ_LINK_COMMAND, SET_GROUP_COMMAND, SET_OWNER_COMMAND, SET_PERMISSION_COMMAND, timeOutInterval, TOKEN_SEPARATOR_REGEX, USER_NAME_COMMAND, WINDOWS, WindowsProcessLaunchLock, WINUTILS| Constructor and Description |
|---|
DF(File path,
Configuration conf) |
DF(File path,
long dfInterval) |
| Modifier and Type | Method and Description |
|---|---|
long |
getAvailable() |
long |
getCapacity() |
String |
getDirPath() |
protected String[] |
getExecString()
return an array containing the command name & its parameters
|
String |
getFilesystem() |
String |
getMount() |
int |
getPercentUsed() |
long |
getUsed() |
static void |
main(String[] args) |
protected void |
parseExecResult(BufferedReader lines)
Parse the execution result
|
protected void |
parseOutput() |
String |
toString() |
appendScriptExtension, appendScriptExtension, execCommand, execCommand, execCommand, getCheckProcessIsAliveCommand, getEnvironmentVariableRegex, getExitCode, getGetPermissionCommand, getGroupsCommand, getGroupsForUserCommand, getHadoopHome, getProcess, getQualifiedBinPath, getReadlinkCommand, getRunScriptCommand, getSetOwnerCommand, getSetPermissionCommand, getSetPermissionCommand, getSignalKillCommand, getSymlinkCommand, getUsersForNetgroupCommand, getWinUtilsPath, isJava7OrAbove, isTimedOut, run, setEnvironment, setWorkingDirectorypublic static final long DF_INTERVAL_DEFAULT
public DF(File path, Configuration conf) throws IOException
IOExceptionpublic DF(File path, long dfInterval) throws IOException
IOExceptionpublic String getDirPath()
public String getFilesystem() throws IOException
IOExceptionpublic long getCapacity()
public long getUsed()
public long getAvailable()
public int getPercentUsed()
public String getMount() throws IOException
IOExceptionprotected String[] getExecString()
ShellgetExecString in class Shellprotected void parseExecResult(BufferedReader lines) throws IOException
ShellparseExecResult in class ShellIOExceptionprotected void parseOutput()
throws IOException
IOExceptionCopyright © 2013 Apache Software Foundation. All rights reserved.