java.lang.Object | +--com.yellowpig.rod.app.watchdog.RunnableLauncher
A Runnable that actually launches and monitors a process for ProcessLauncher.
You can also view the source for this class.
This program and its documentation are copyright © 1999 Rodney Waldhoff. You must agree to the licensing terms in order to read, use, distribute or deploy this software or its documentation. (Don't worry, it's Open Source.)
ProcessLauncher
Field Summary | |
protected java.lang.String |
_cmnd
The command to execute (via java.lang.Runtime.exec(String)). |
protected boolean |
_restart
A flag indicating whether or not to restart the process when it closes. |
private static java.text.SimpleDateFormat |
DT_FORMATTER
A data/time format used when reporting start/restart times. |
Constructor Summary | |
(package private) |
RunnableLauncher(boolean restart,
java.lang.String execCmnd)
My constructor. |
Method Summary | |
void |
run()
My threaded method. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static final java.text.SimpleDateFormat DT_FORMATTER
protected boolean _restart
run()
protected java.lang.String _cmnd
run()
Constructor Detail |
RunnableLauncher(boolean restart, java.lang.String execCmnd)
restart
- A flag indicating whether or not to restart the process when it closes.execCmnd
- The command to execute (via java.lang.Runtime.exec(String))Method Detail |
public void run()
Start the process, and optionally restart it when it exits.