Package org.apache.solr.handler
Class IndexFetcher
java.lang.Object
org.apache.solr.handler.IndexFetcher
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
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static classprotected classstatic classprotected class -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionIndexFetcher(org.apache.solr.common.util.NamedList<?> initArgs, ReplicationHandler handler, SolrCore sc) -
Method Summary
Modifier and TypeMethodDescriptionprotected static IndexFetcher.CompareResultcompareFile(org.apache.lucene.store.Directory indexDir, String filename, Long backupIndexFileLen, Long backupIndexFileChecksum) voiddestroy()org.apache.solr.common.util.NamedList<Object> Gets the latest commit version and generation from the leaderprotected <T> TgetParameter(org.apache.solr.common.util.NamedList<?> initArgs, String configKey, T defaultValue, StringBuilder sb)
-
Field Details
-
INDEX_PROPERTIES
- See Also:
-
REPLICATION_PROPERTIES
- See Also:
-
-
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
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()
-