Example usage for Java org.apache.commons.exec Executor fields, constructors, methods, implement or subclass
The text is from its open source code.
int | INVALID_EXITVALUE Invalid exit code. |
int | execute(CommandLine command) Methods for starting synchronous execution. |
int | execute(CommandLine command, Map Methods for starting synchronous execution. |
void | execute(CommandLine command, ExecuteResultHandler handler) Methods for starting asynchronous execution. |
void | execute(CommandLine command, Map Methods for starting asynchronous execution. |
ProcessDestroyer | getProcessDestroyer() Set the handler for cleanup of started processes if the main process is going to terminate. |
ExecuteWatchdog | getWatchdog() Get the watchdog used to kill of processes running, typically, too long time. |
File | getWorkingDirectory() Get the working directory of the created process. |
boolean | isFailure(final int exitValue) Checks whether exitValue signals a failure. |
void | setExitValue(final int value) Define the exitValue of the process to be considered successful. |
void | setExitValues(final int[] values) Define a list of exitValue of the process to be considered successful. |
void | setProcessDestroyer(ProcessDestroyer processDestroyer) Get the handler for cleanup of started processes if the main process is going to terminate. |
void | setStreamHandler(ExecuteStreamHandler streamHandler) Set a custom the StreamHandler used for providing input and retrieving the output. |
void | setWatchdog(ExecuteWatchdog watchDog) Set the watchdog used to kill of processes running, typically, too long time. |
void | setWorkingDirectory(File dir) Set the working directory of the created process. |