public class ProcessMonitor
extends java.lang.Object
implements java.lang.Runnable
| Constructor and Description |
|---|
ProcessMonitor(java.lang.Process proc)
Monitor the supplied process
|
| Modifier and Type | Method and Description |
|---|---|
static ProcessMonitor |
create(java.lang.Process proc)
Creates a process monitor in a new thread, waits for
completion
|
int |
getExitValue()
Exit value of the process
|
boolean |
isComplete()
Whether or not the process has completed
|
void |
run()
Runs the process, waiting for completion
|
public ProcessMonitor(java.lang.Process proc)
public boolean isComplete()
public int getExitValue()
public void run()
run in interface java.lang.Runnablepublic static ProcessMonitor create(java.lang.Process proc)
proc - process to monitor