public class OddjobRunner
extends java.lang.Object
implements java.lang.Runnable
If Oddjob doesn't terminate then a timeout will just kill the JVM. The timeout is configurable but defaults to 15 seconds.
Modifier and Type | Class and Description |
---|---|
static interface |
OddjobRunner.ExitHandler |
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_KILLER_TIMEOUT |
static java.lang.String |
KILLER_TIMEOUT_PROPERTY |
Constructor and Description |
---|
OddjobRunner(Oddjob oddjob) |
OddjobRunner(Oddjob oddjob,
OddjobRunner.ExitHandler exitHandler)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
Oddjob |
getOddjob() |
void |
run() |
public static final java.lang.String KILLER_TIMEOUT_PROPERTY
public static final long DEFAULT_KILLER_TIMEOUT
public OddjobRunner(Oddjob oddjob)
public OddjobRunner(Oddjob oddjob, OddjobRunner.ExitHandler exitHandler)
oddjob
- The Oddjob to run.public Oddjob getOddjob()
public void run()
run
in interface java.lang.Runnable