public class LocalCommandRunner extends Object implements CommandRunner
| Constructor and Description |
|---|
LocalCommandRunner() |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose()
Clean up any resources that were acquired to execute shell commands.
|
void |
initialize()
Initialization required before executing a command.
|
int |
runCommand(List<String> args,
InputStream stdIn,
OutputStream stdOut,
OutputStream stdErr)
Run the specified command.
|
public void initialize()
CommandRunnerinitialize in interface CommandRunnerpublic int runCommand(List<String> args, InputStream stdIn, OutputStream stdOut, OutputStream stdErr) throws IOException
CommandRunnerrunCommand in interface CommandRunnerargs - list of arguments for the command line executionstdIn - input stream used as standard instdOut - output stream that captures standard outstdErr - output stream that captures standard errIOException - thrown if any errors occurpublic void dispose()
CommandRunnerdispose in interface CommandRunnerCopyright © 2016 Actian Corporation. All rights reserved.