org.oddjob
Class OddjobRunner

java.lang.Object
  extended by 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

Field Summary
static long DEFAULT_KILLER_TIMEOUT
           
static String KILLER_TIMEOUT_PROPERTY
           
 
Constructor Summary
OddjobRunner(Oddjob oddjob)
          Constructor.
 
Method Summary
 Oddjob getOddjob()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

OddjobRunner

public OddjobRunner(Oddjob oddjob)
Constructor.

Parameters:
oddjob - The Oddjob to run.
Method Detail

getOddjob

public Oddjob getOddjob()

run

public void run()