dk.netarkivet.common.distribute.indexserver
Class IndexClientFactory

java.lang.Object
  extended by dk.netarkivet.common.utils.SettingsFactory<JobIndexCache>
      extended by 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
IndexClientFactory()
           
 
Method Summary
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexClientFactory

public IndexClientFactory()
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.