com.ch.odi.parallel
Class ParallelJob

java.lang.Object
  |
  +--com.ch.odi.parallel.ParallelJob

public abstract class ParallelJob
extends Object
implements Runnable


Constructor Summary
ParallelJob()
           
 
Method Summary
 ParallelScheduler getScheduler()
          Returns the scheduler that was set with the setScheduler method.
 void run()
          Called by the scheduler
 void setScheduler(ParallelScheduler sched)
          The scheduler must register itself with this method befor starting the thread.
protected abstract  void start()
          The implementing class can override this method to do the actual work.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ParallelJob

public ParallelJob()
Method Detail

run

public void run()
Called by the scheduler
Specified by:
run in interface Runnable

start

protected abstract void start()
The implementing class can override this method to do the actual work.

setScheduler

public void setScheduler(ParallelScheduler sched)
The scheduler must register itself with this method befor starting the thread.

getScheduler

public ParallelScheduler getScheduler()
Returns the scheduler that was set with the setScheduler method.