public class ProcessExecutor extends Object
Constructor and Description |
---|
ProcessExecutor(String commandName,
List<String> command,
boolean printOutput,
boolean saveOutput) |
Modifier and Type | Method and Description |
---|---|
boolean |
executeAndWaitCompletion(long timeout,
boolean logOnError) |
List<String> |
getErrorOutput() |
int |
getExitCode() |
List<String> |
getOutput() |
boolean |
isProcessFinished() |
boolean |
isRunningRemotely() |
void |
killProcess() |
void |
start() |
public void start() throws IOException
IOException
public void killProcess()
public boolean executeAndWaitCompletion(long timeout, boolean logOnError) throws InterruptedException
InterruptedException
public boolean isProcessFinished()
public boolean isRunningRemotely()
public int getExitCode()