net.spy.cron
Class MainJob

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

public class MainJob
extends Job
implements ThreadPoolRunnable

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


Constructor Summary
MainJob(java.lang.ClassLoader cl, java.lang.String cName, java.lang.String[] a, java.util.Date startDate)
          Get a new ``at style'' MainJob.
MainJob(java.lang.ClassLoader cl, java.lang.String cName, java.lang.String[] a, java.util.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, toString, wait, wait, wait
 
Methods inherited from interface net.spy.concurrent.ThreadPoolRunnable
toString
 
Methods inherited from interface java.lang.Runnable
run
 

Constructor Detail

MainJob

public MainJob(java.lang.ClassLoader cl,
               java.lang.String cName,
               java.lang.String[] a,
               java.util.Date startDate)
Get a new ``at style'' MainJob.


MainJob

public MainJob(java.lang.ClassLoader cl,
               java.lang.String cName,
               java.lang.String[] a,
               java.util.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


Copyright © 1995-2007 SPY Internetworking. All Rights Reserved.