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()
CommandRunner
initialize
in interface CommandRunner
public int runCommand(List<String> args, InputStream stdIn, OutputStream stdOut, OutputStream stdErr) throws IOException
CommandRunner
runCommand
in interface CommandRunner
args
- 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()
CommandRunner
dispose
in interface CommandRunner
Copyright © 2024 Actian Corporation. All rights reserved.