org.dspace.checker
Class SimpleDispatcher

java.lang.Object
  extended by 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

Field Summary
 
Fields inherited from interface org.dspace.checker.BitstreamDispatcher
SENTINEL
 
Constructor Summary
SimpleDispatcher(BitstreamInfoDAO bitstreamInfoDAO, Date startTime, boolean looping)
          Creates a new SimpleDispatcher.
 
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
 

Constructor Detail

SimpleDispatcher

public SimpleDispatcher(BitstreamInfoDAO bitstreamInfoDAO,
                        Date startTime,
                        boolean looping)
Creates a new SimpleDispatcher.

Parameters:
startTime - timestamp for beginning of checker process
looping - indicates whether checker should loop infinitely through most_recent_checksum table
Method Detail

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.