@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, setWorkingDirectory
public static final long DF_INTERVAL_DEFAULT
public DF(File path, Configuration conf) throws IOException
IOException
public DF(File path, long dfInterval) throws IOException
IOException
public String getDirPath()
public String getFilesystem() throws IOException
IOException
public long getCapacity()
public long getUsed()
public long getAvailable()
public int getPercentUsed()
public String getMount() throws IOException
IOException
protected String[] getExecString()
Shell
getExecString
in class Shell
protected void parseExecResult(BufferedReader lines) throws IOException
Shell
parseExecResult
in class Shell
IOException
protected void parseOutput() throws IOException
IOException
Copyright © 2013 Apache Software Foundation. All rights reserved.