org.oddjob.framework
Class ExecutionWatcher

java.lang.Object
  extended by org.oddjob.framework.ExecutionWatcher

public class ExecutionWatcher
extends Object

Watches the execution of jobs and executes an action when all jobs have been executed.

Author:
rob

Constructor Summary
ExecutionWatcher(Runnable action)
          Constructor.
 
Method Summary
 Runnable addJob(Runnable job)
          Add a job.
 void start()
          Starts the check.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutionWatcher

public ExecutionWatcher(Runnable action)
Constructor.

Parameters:
action - The action to run.
Method Detail

addJob

public Runnable addJob(Runnable job)
Add a job.

Parameters:
job -
Returns:
The new job to execute.

start

public void start()
Starts the check.