dk.netarkivet.common.distribute.indexserver
Class IndexClientFactory
java.lang.Object
dk.netarkivet.common.utils.SettingsFactory<JobIndexCache>
dk.netarkivet.common.distribute.indexserver.IndexClientFactory
public class IndexClientFactory
- extends SettingsFactory<JobIndexCache>
A factory for IndexClients.
Implementation note: This currently assumes that only one implementation
exists, pointed out by the setting settings.common.indexClient.class, but
that the cache variant in question is selected by a parameter to its
getInstance method.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
IndexClientFactory
public IndexClientFactory()
getCDXInstance
public static JobIndexCache getCDXInstance()
- Get a cache of CDX files for a set of jobs.
- Returns:
- A cache implementation for CDX files.
getDedupCrawllogInstance
public static JobIndexCache getDedupCrawllogInstance()
- Get a cache of Lucene index files for a set of jobs. This index is
intended for deduplication and may contain a subset of the actual entries
for the given jobs in the archive to preserve space and time.
- Returns:
- A cache implementation for Lucene index files for deduplication.
getFullCrawllogInstance
public static JobIndexCache getFullCrawllogInstance()
- Get a cache of Lucene index files for a set of jobs. This index is
intended for a viewer, and contains entries for all the records for the
given job.
- Returns:
- A cache implementation for Lucene index files for viewing.