public class DF extends Shell
Shell.ExitCodeException, Shell.ShellCommandExecutor
Modifier and Type | Field and Description |
---|---|
static long |
DF_INTERVAL_DEFAULT |
LOG, SET_GROUP_COMMAND, SET_OWNER_COMMAND, SET_PERMISSION_COMMAND, USER_NAME_COMMAND, WINDOWS
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
|
String |
toString() |
execCommand, execCommand, getExitCode, getGET_PERMISSION_COMMAND, getGROUPS_COMMAND, getProcess, getUlimitMemoryCommand, 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() throws IOException
IOException
public long getUsed() throws IOException
IOException
public long getAvailable() throws IOException
IOException
public int getPercentUsed() throws IOException
IOException
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
Copyright © 2010 The Apache Software Foundation