dk.netarkivet.common.distribute.indexserver
Interface JobIndexCache

All Known Implementing Classes:
CDXIndexCache, CrawlLogIndexCache, DedupCrawlLogIndexCache, FullCrawlLogIndexCache, IndexRequestClient, LocalCDXCache, TrivialJobIndexCache

public interface JobIndexCache

An interface to a cache of data for jobs.


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.
 

Method Detail

getIndex

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. The resulting file contains a suitably sorted list. This method should always be safe for asynchronous calling. This method may use a cached version of the file.

Parameters:
jobIDs - Set of job IDs to generate index for.
Returns:
An index, consisting of a file and the set this is an index for. This file must not be modified or deleted, since it is part of the cache of data.