Package org.apache.solr.handler
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
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description protected static classIndexFetcher.CompareResultstatic classIndexFetcher.IndexFetchResult
 - 
Field SummaryFields Modifier and Type Field Description static StringINDEX_PROPERTIESstatic StringREPLICATION_PROPERTIES
 - 
Constructor SummaryConstructors Constructor Description IndexFetcher(org.apache.solr.common.util.NamedList<?> initArgs, ReplicationHandler handler, SolrCore sc)
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected static IndexFetcher.CompareResultcompareFile(org.apache.lucene.store.Directory indexDir, String filename, Long backupIndexFileLen, Long backupIndexFileChecksum)voiddestroy()org.apache.solr.common.util.NamedList<Object>getLatestVersion()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 Detail- 
INDEX_PROPERTIESpublic static final String INDEX_PROPERTIES - See Also:
- Constant Field Values
 
 - 
REPLICATION_PROPERTIESpublic static final String REPLICATION_PROPERTIES - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
IndexFetcherpublic IndexFetcher(org.apache.solr.common.util.NamedList<?> initArgs, ReplicationHandler handler, SolrCore sc)
 
- 
 - 
Method Detail- 
getParameterprotected <T> T getParameter(org.apache.solr.common.util.NamedList<?> initArgs, String configKey, T defaultValue, StringBuilder sb)
 - 
getLatestVersionpublic org.apache.solr.common.util.NamedList<Object> getLatestVersion() throws IOException Gets the latest commit version and generation from the leader- Throws:
- IOException
 
 - 
compareFileprotected static IndexFetcher.CompareResult compareFile(org.apache.lucene.store.Directory indexDir, String filename, Long backupIndexFileLen, Long backupIndexFileChecksum) 
 - 
destroypublic void destroy() 
 
- 
 
-