public class ShellProcessor extends Object implements JobProcessor
| 构造器和说明 |
|---|
ShellProcessor() |
| 限定符和类型 | 方法和说明 |
|---|---|
protected String[] |
getContent(JobContext context) |
void |
kill(JobContext context) |
ProcessResult |
postProcess(JobContext context) |
void |
preProcess(JobContext context) |
ProcessResult |
process(JobContext context) |
protected void |
processStdErrorStream(InputStream inputStream) |
protected void |
processStdOutputStream(InputStream inputStream) |
protected boolean |
redirectStream() |
protected static final Logger LOGGER
public ProcessResult process(JobContext context)
process 在接口中 JobProcessorprotected String[] getContent(JobContext context)
protected void processStdOutputStream(InputStream inputStream)
protected void processStdErrorStream(InputStream inputStream)
protected boolean redirectStream()
public ProcessResult postProcess(JobContext context)
postProcess 在接口中 JobProcessorpublic void kill(JobContext context)
kill 在接口中 JobProcessorpublic void preProcess(JobContext context) throws Exception
preProcess 在接口中 JobProcessorExceptionCopyright © 2021. All rights reserved.