Class 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 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.