net.spy.cron
Class MainJob

java.lang.Object
  extended bynet.spy.SpyObject
      extended bynet.spy.cron.Job
          extended bynet.spy.cron.MainJob
All Implemented Interfaces:
Runnable, ThreadPoolRunnable

public class MainJob
extends Job
implements ThreadPoolRunnable

A job that invokes a class's main() method at run time.


Constructor Summary
MainJob(String classname, String[] args, Date startDate)
          Get a new ``at style'' MainJob.
MainJob(String classname, String[] args, Date startDate, TimeIncrement ti)
          Get a new ``cron style'' MainJob.
 
Method Summary
 void runJob()
          What to do when it's time to run.
 
Methods inherited from class net.spy.cron.Job
findNextRun, getName, getStartTime, getTimeIncrement, isAlive, isReady, isTrash, markFinished, markStarted, run, setName, setStartTime, stopRunning, toString
 
Methods inherited from class net.spy.SpyObject
getLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface net.spy.util.ThreadPoolRunnable
toString
 
Methods inherited from interface java.lang.Runnable
run
 

Constructor Detail

MainJob

public MainJob(String classname,
               String[] args,
               Date startDate)
Get a new ``at style'' MainJob.


MainJob

public MainJob(String classname,
               String[] args,
               Date startDate,
               TimeIncrement ti)
Get a new ``cron style'' MainJob.

Method Detail

runJob

public void runJob()
What to do when it's time to run.

Specified by:
runJob in class Job