public class IntegrationExecutor extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
IntegrationExecutor(File jarFile) |
|
IntegrationExecutor(String module,
String name) |
| Modifier and Type | Method and Description |
|---|---|
String |
getError() |
String |
getOutput() |
int |
run(String... args)
Run the program with the specified arguments.
|
void |
setDeadlineMs(long deadlineMs)
Set the program deadline.
|
void |
setInput(InputStream in)
Set input stream to write to the process as program input.
|
public IntegrationExecutor(String module, String name) throws IOException
IOExceptionprotected IntegrationExecutor(File jarFile)
public String getOutput()
public String getError()
public void setInput(InputStream in)
in - The program input.public void setDeadlineMs(long deadlineMs)
deadlineMs - The new deadline in milliseconds. 0 means to wait
forever. Default is 1 second.public int run(String... args) throws IOException
args - The arguments.IOException - If the run times out or is interrupted.Copyright © 2017. All rights reserved.