Class IndexFetcher

java.lang.Object
org.apache.solr.handler.IndexFetcher

public class IndexFetcher extends Object
Provides functionality of downloading changed index files as well as config files and a timer for scheduling fetches from the leader.
Since:
solr 1.4
  • Field Details

  • Constructor Details

    • IndexFetcher

      public IndexFetcher(org.apache.solr.common.util.NamedList<?> initArgs, ReplicationHandler handler, SolrCore sc)
  • Method Details

    • getParameter

      protected <T> T getParameter(org.apache.solr.common.util.NamedList<?> initArgs, String configKey, T defaultValue, StringBuilder sb)
    • getLatestVersion

      public org.apache.solr.common.util.NamedList<Object> getLatestVersion() throws IOException
      Gets the latest commit version and generation from the leader
      Throws:
      IOException
    • compareFile

      protected static IndexFetcher.CompareResult compareFile(org.apache.lucene.store.Directory indexDir, String filename, Long backupIndexFileLen, Long backupIndexFileChecksum)
    • destroy

      public void destroy()