net.spy.cron
Class MainJob
java.lang.Object
net.spy.SpyObject
net.spy.cron.Job
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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.Runnable |
run |
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.
runJob
public void runJob()
- What to do when it's time to run.
- Specified by:
runJob in class Job
Copyright © 1995-2005 SPY Internetworking. All Rights Reserved.