org.dspace.checker
Class SimpleDispatcher
java.lang.Object
org.dspace.checker.SimpleDispatcher
- All Implemented Interfaces:
- BitstreamDispatcher
public class SimpleDispatcher
- extends Object
- implements BitstreamDispatcher
An implementation of the selection strategy that selects bitstreams in the
order that they were last checked, looping endlessly.
- Author:
- Jim Downing, Grace Carpenter, Nathan Sarr
|
Method Summary |
int |
next()
Selects the next candidate bitstream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SimpleDispatcher
public SimpleDispatcher(BitstreamInfoDAO bitstreamInfoDAO,
Date startTime,
boolean looping)
- Creates a new SimpleDispatcher.
- Parameters:
startTime - timestamp for beginning of checker processlooping - indicates whether checker should loop infinitely through
most_recent_checksum table
next
public int next()
- Selects the next candidate bitstream.
- Specified by:
next in interface BitstreamDispatcher
- Returns:
- the next bitstream id, or BitstreamDispatcher.SENTINEL if there
isn't another value
- See Also:
BitstreamDispatcher.next()
Copyright © 2010 DuraSpace. All Rights Reserved.