net.spy.cron
Class JobQueue<T extends Job>
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<T>
net.spy.cron.JobQueue<T>
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<T>, Collection<T>, List<T>, RandomAccess
- Direct Known Subclasses:
- FileJobQueue
public class JobQueue<T extends Job>
- extends ArrayList<T>
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, 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(T j)
- Add a job.
getReadyJobs
public Collection<Job> getReadyJobs()
- Get an Iterator of Jobs that are ready to run.
getNextStartDate
public Date getNextStartDate()
- Get the time the next job will start.
Copyright © 1995-2007 SPY Internetworking. All Rights Reserved.