public class ProcShell extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static boolean |
isDone |
| 构造器和说明 |
|---|
ProcShell() |
| 限定符和类型 | 方法和说明 |
|---|---|
boolean |
exec(String commandstr) |
boolean |
execByTimeout(String commandstr) |
boolean |
execByTimeoutByDir(String commandstr,
String dir) |
boolean |
execByTimeoutShell(String commandstr) |
String |
getCharsetName() |
String |
getLogFilePath() |
Long |
getTimeout() |
void |
setCharsetName(String charsetName) |
void |
setLogFilePath(String logFilePath) |
void |
setTimeout(Long timeout) |
void |
writeComLog(String str)
日志输出回调
|
static void |
writeLog(String logPath,
String str) |
public String getLogFilePath()
public void setLogFilePath(String logFilePath)
public String getCharsetName()
public void setCharsetName(String charsetName)
public Long getTimeout()
public void setTimeout(Long timeout)
public boolean execByTimeout(String commandstr)
public boolean execByTimeoutShell(String commandstr)
public boolean exec(String commandstr)
public void writeComLog(String str)
Copyright © 2022. All rights reserved.