Package org.dspace.checker
Class SimpleDispatcher
java.lang.Object
org.dspace.checker.SimpleDispatcher
- All Implemented Interfaces:
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
FieldsModifier and TypeFieldDescriptionprotected MostRecentChecksumServiceAccess for bitstream informationprotected Contextprotected booleanShould this dispatcher keep on dispatching around the collection?protected InstantDate this dispatcher started dispatching.Fields inherited from interface org.dspace.checker.BitstreamDispatcher
SENTINEL -
Constructor Summary
ConstructorsConstructorDescriptionSimpleDispatcher(Context context, Instant startTime, boolean looping) Creates a new SimpleDispatcher. -
Method Summary
-
Field Details
-
loopContinuously
protected boolean loopContinuouslyShould this dispatcher keep on dispatching around the collection? -
processStartTime
Date this dispatcher started dispatching. -
checksumService
Access for bitstream information -
context
-
-
Constructor Details
-
SimpleDispatcher
Creates a new SimpleDispatcher.- Parameters:
context- ContextstartTime- timestamp for beginning of checker processlooping- indicates whether checker should loop infinitely through most_recent_checksum table
-
-
Method Details
-
next
Selects the next candidate bitstream.- Specified by:
nextin interfaceBitstreamDispatcher- Returns:
- the next bitstream id, or BitstreamDispatcher.SENTINEL if there isn't another value
- Throws:
SQLException- if database error- See Also:
-