net.spy.cron
Class FileJobQueue
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<T>
net.spy.cron.JobQueue<MainJob>
net.spy.cron.FileJobQueue
- All Implemented Interfaces:
- Serializable, Cloneable, Iterable<MainJob>, Collection<MainJob>, List<MainJob>, RandomAccess
public class FileJobQueue
- extends JobQueue<MainJob>
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, remove, removeRange, set, size, toArray, toArray, trimToSize |
FileJobQueue
public FileJobQueue(ClassLoader cl,
File f)
throws IOException
- Get a new FileJobQueue based on what's in the given file.
- Parameters:
cl - the class loaderf - the file to read
- Throws:
IOException - if there's a problem reading the jobs
FileJobQueue
public FileJobQueue(File f)
throws IOException
- Get a FileJobQueue from a file using the current classloader.
- Parameters:
f - the file
- Throws:
IOException
FileJobQueue
public FileJobQueue(ClassLoader cl,
Reader r)
throws IOException
- Get a new FileJobQueue from a Reader.
- Parameters:
cl - the classloaderr - the reader
- Throws:
IOException - if there's a problem reading the jobs
FileJobQueue
public FileJobQueue(Reader r)
throws IOException
- Get a FileJobQueue from a reader using the current classloader.
- Parameters:
r - the reader
- Throws:
IOException
Copyright © 1995-2007 SPY Internetworking. All Rights Reserved.