net.spy.cron
Class JobQueue

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.ArrayList
              extended by net.spy.cron.JobQueue
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Iterable, java.util.Collection, java.util.List, java.util.RandomAccess
Direct Known Subclasses:
FileJobQueue

public class JobQueue
extends java.util.ArrayList

This is where all the jobs go.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
JobQueue()
          Get a new job queue.
 
Method Summary
 void addJob(Job j)
          Add a job.
protected  Logger getLogger()
          Get the logger for this instance.
 java.util.Date getNextStartDate()
          Get the time the next job will start.
 java.util.Iterator getReadyJobs()
          Get an Iterator of Jobs that are ready to run.
 
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
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, removeAll, retainAll, subList
 

Constructor Detail

JobQueue

public JobQueue()
Get a new job queue.

Method Detail

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 java.util.Iterator getReadyJobs()
Get an Iterator of Jobs that are ready to run.


getNextStartDate

public java.util.Date getNextStartDate()
Get the time the next job will start.



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