net.spy.cron
Class JobQueue
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
net.spy.cron.JobQueue
- All Implemented Interfaces:
- Cloneable, Collection, List, RandomAccess, Serializable
- Direct Known Subclasses:
- FileJobQueue
- public class JobQueue
- extends ArrayList
This is where all the jobs go.
- See Also:
- Serialized Form
|
Constructor Summary |
JobQueue()
Get a new job queue. |
| Methods inherited from class java.util.ArrayList |
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize |
JobQueue
public JobQueue()
- Get a new job queue.
getLogger
protected Logger getLogger()
- Get the logger for this instance.
- Returns:
- the appropriate logger for this object
addJob
public void addJob(Job j)
- Add a job.
getReadyJobs
public Iterator getReadyJobs()
- Get an Iterator of Jobs that are ready to run.
getNextStartDate
public Date getNextStartDate()
- Get the time the next job will start.