java.lang.Object | |
↳ | com.pnfsoftware.jeb.util.concurrent.ProcessWrapper |
Safe wrapper around ProcessBuilder and Process.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ProcessWrapper(String... cmdarray)
Execute a process without timeout.
| |||||||||||
ProcessWrapper(long timeout, String... cmdarray)
Execute a process with timeout.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
synchronized InputStream | getProcessError() | ||||||||||
synchronized OutputStream | getProcessInput() | ||||||||||
synchronized InputStream | getProcessOutput() | ||||||||||
synchronized Integer | getReturnCode() | ||||||||||
synchronized boolean | isAlive() | ||||||||||
static boolean | isKillSpawnedProcessesOnShutdown() | ||||||||||
synchronized void | kill() | ||||||||||
static void | setKillSpawnedProcessesOnShutdown(boolean enabled) | ||||||||||
synchronized ProcessWrapper | start() | ||||||||||
String | toString() | ||||||||||
void | waitForCompletion() |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Execute a process without timeout.
cmdarray | command |
---|
Execute a process with timeout.
timeout | timeout in milliseconds. |
---|---|
cmdarray | command |