|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dk.netarkivet.common.distribute.indexserver.TrivialJobIndexCache
public class TrivialJobIndexCache
A trivial JobIndexCache implementation that just assumes somebody places the indexes in the right place (in TrivialJobIndexCache under the cache dir).
Constructor Summary | |
---|---|
TrivialJobIndexCache(RequestType t)
Construct a trivial cache that requires manual setup of files. |
Method Summary | |
---|---|
Index<java.util.Set<java.lang.Long>> |
getIndex(java.util.Set<java.lang.Long> jobIDs)
Get an index for the given list of job IDs. |
void |
requestIndex(java.util.Set<java.lang.Long> jobSet,
java.lang.Long harvestId)
Request an index from the indexserver. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TrivialJobIndexCache(RequestType t)
Method Detail |
---|
public Index<java.util.Set<java.lang.Long>> getIndex(java.util.Set<java.lang.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(java.util.Set<java.lang.Long> jobSet, java.lang.Long harvestId)
JobIndexCache
requestIndex
in interface JobIndexCache
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |