com.yellowpig.rod.app.watchdog
Class RunnableLauncher

java.lang.Object
  |
  +--com.yellowpig.rod.app.watchdog.RunnableLauncher

class RunnableLauncher
extends java.lang.Object
implements java.lang.Runnable

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.)

Version:
1.0 [1999.03.23]
Author:
Rodney Waldhoff <rwald@hotmail.com>
See Also:
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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

DT_FORMATTER

private static final java.text.SimpleDateFormat DT_FORMATTER
A data/time format used when reporting start/restart times.

_restart

protected boolean _restart
A flag indicating whether or not to restart the process when it closes.
See Also:
run()

_cmnd

protected java.lang.String _cmnd
The command to execute (via java.lang.Runtime.exec(String)).
See Also:
run()
Constructor Detail

RunnableLauncher

RunnableLauncher(boolean restart,
                 java.lang.String execCmnd)
My constructor.
Parameters:
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

run

public void run()
My threaded method.

Start the process, and optionally restart it when it exits.

Specified by:
run in interface java.lang.Runnable