net.spy.cron
Class FileJobQueue
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
java.util.ArrayList
net.spy.cron.JobQueue
net.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:
- YYYYMMDD-HHMMSS calfield calincrement classname args ...
- HHMMSS calfield calincrement classname args ...
- MMSS calfield calincrement classname args ...
There are also special times that may be provided for less specific start
times:
- NOW - start immediately (or close to it) after startup, cycle from
that time
- NEXT - similar to NOW, but skip the current startup. Each cycle
will be based on the startup time, but the first run will happen after
the delay finishes.
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
| 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 |
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