public class DF extends Shell
Shell.ExitCodeException, Shell.ShellCommandExecutor
限定符和类型 | 字段和说明 |
---|---|
static long |
DF_INTERVAL_DEFAULT
Default DF refresh interval.
|
LOG, SET_GROUP_COMMAND, SET_OWNER_COMMAND, SET_PERMISSION_COMMAND, timeOutInterval, ULIMIT_COMMAND, USER_NAME_COMMAND, WINDOWS
构造器和说明 |
---|
DF(File path,
Configuration conf) |
DF(File path,
long dfInterval) |
限定符和类型 | 方法和说明 |
---|---|
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, execCommand, getExitCode, getGET_PERMISSION_COMMAND, getGroupsCommand, getGroupsForUserCommand, getProcess, getUlimitMemoryCommand, getUlimitMemoryCommand, getUsersForNetgroupCommand, 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
在类中 Shell
protected void parseExecResult(BufferedReader lines) throws IOException
Shell
parseExecResult
在类中 Shell
IOException
Copyright © 2009 The Apache Software Foundation