public class TrivialJobIndexCache extends Object implements JobIndexCache
Constructor and Description |
---|
TrivialJobIndexCache(RequestType t)
Construct a trivial cache that requires manual setup of files.
|
Modifier and Type | Method and Description |
---|---|
Index<Set<Long>> |
getIndex(Set<Long> jobIDs)
Get an index for the given list of job IDs.
|
void |
requestIndex(Set<Long> jobSet,
Long harvestId)
Request an index from the indexserver.
|
public TrivialJobIndexCache(RequestType t)
The directory that the files are to be put into will be created by this method.
t
- The type of requests handledpublic Index<Set<Long>> getIndex(Set<Long> jobIDs)
getIndex
in interface JobIndexCache
jobIDs
- Set of job IDs to generate index for.IOFailure
- if there is no cache file for the set.public void requestIndex(Set<Long> jobSet, Long harvestId)
JobIndexCache
requestIndex
in interface JobIndexCache
jobSet
- Set of job IDs to generate index for.harvestId
- Harvestdefinition associated with this set of jobsCopyright © 2005–2016 The Royal Danish Library, the Danish State and University Library, the National Library of France and the Austrian National Library.. All rights reserved.