org.oddjob
Class OddjobRunner
java.lang.Object
org.oddjob.OddjobRunner
public class OddjobRunner
- extends Object
A Wrapper for running Oddjob that ensures a smooth shutdown.
If Oddjob doesn't terminate then a timeout will just kill the JVM. The
timeout is configurable but defaults to 15 seconds.
- Author:
- rob
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
KILLER_TIMEOUT_PROPERTY
public static final String KILLER_TIMEOUT_PROPERTY
- See Also:
- Constant Field Values
DEFAULT_KILLER_TIMEOUT
public static final long DEFAULT_KILLER_TIMEOUT
- See Also:
- Constant Field Values
OddjobRunner
public OddjobRunner(Oddjob oddjob)
- Constructor.
- Parameters:
oddjob
- The Oddjob to run.
getOddjob
public Oddjob getOddjob()
run
public void run()