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.
-
-
Constructor Summary
Constructors Constructor Description IndexClientFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static JobIndexCache
getCDXInstance()
Get a cache of CDX files for a set of jobs.static JobIndexCache
getDedupCrawllogInstance()
Get a cache of Lucene index files for a set of jobs.static JobIndexCache
getFullCrawllogInstance()
Get a cache of Lucene index files for a set of jobs.-
Methods inherited from class dk.netarkivet.common.utils.SettingsFactory
getInstance
-
-
-
-
Method Detail
-
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.
-
-