public abstract class AbstractProcessExecutor extends Object implements ProcessExecutor
Modifier and Type | Field and Description |
---|---|
protected Logger |
LOGGER
The logger
|
PROCESS_EXECUTER_CLASS_NAME_PROPERTY_KEY
Constructor and Description |
---|
AbstractProcessExecutor()
This is the class constructor.
|
Modifier and Type | Method and Description |
---|---|
ProcessExecutorHelper.ProcessOutput |
executeProcess(ConfigurationHolder configurationHolder,
String command)
This function executes the given command and returns the process output.
|
protected abstract ProcessExecutorHelper.ProcessOutput |
executeProcessImpl(ConfigurationHolder configurationHolder,
String command)
This function executes the given command and returns the process output.
|
protected final Logger LOGGER
public AbstractProcessExecutor()
public ProcessExecutorHelper.ProcessOutput executeProcess(ConfigurationHolder configurationHolder, String command) throws IOException, InterruptedException
executeProcess
in interface ProcessExecutor
configurationHolder
- The configuration holder used when invoking the processcommand
- The command to executeIOException
- Any IO exceptionInterruptedException
- If thread interrupted during waitFor for the processprotected abstract ProcessExecutorHelper.ProcessOutput executeProcessImpl(ConfigurationHolder configurationHolder, String command) throws IOException, InterruptedException
configurationHolder
- The configuration holder used when invoking the processcommand
- The command to executeIOException
- Any IO exceptionInterruptedException
- If thread interrupted during waitFor for the processCopyright © 2009–2020 fax4j. All rights reserved.