net.spy.cron
Class FileJobQueue

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended bynet.spy.cron.JobQueue
                  extended bynet.spy.cron.FileJobQueue
All Implemented Interfaces:
Cloneable, Collection, List, RandomAccess, Serializable

public class FileJobQueue
extends JobQueue

Get a job queue as defined in a file. The file will be in one the following formats:

There are also special times that may be provided for less specific start times: In a case where fields are not provided, the current time will be substituted.

For example:

 20010403-090000 DAY 1 net.spy.pagermusic.RunSubs
 

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
FileJobQueue(File f)
          Get a new FileJobQueue based on what's in the given file.
FileJobQueue(Reader r)
          Get a new FileJobQueue from a Reader.
 
Methods inherited from class net.spy.cron.JobQueue
addJob, getLogger, getNextStartDate, getReadyJobs
 
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
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, 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, remove, removeAll, retainAll, subList
 

Constructor Detail

FileJobQueue

public FileJobQueue(File f)
             throws IOException
Get a new FileJobQueue based on what's in the given file.

Parameters:
f - the file to read
Throws:
IOException - if there's a problem reading the jobs

FileJobQueue

public FileJobQueue(Reader r)
             throws IOException
Get a new FileJobQueue from a Reader.

Parameters:
r - the reader
Throws:
IOException - if there's a problem reading the jobs