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, 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 在类中 Shellprotected void parseExecResult(BufferedReader lines) throws IOException
ShellparseExecResult 在类中 ShellIOExceptionCopyright © 2009 The Apache Software Foundation