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 master.
Modifier and Type | Class and Description |
---|---|
protected static class |
IndexFetcher.CompareResult |
Modifier and Type | Field and Description |
---|---|
static String |
INDEX_PROPERTIES |
static String |
REPLICATION_PROPERTIES |
Constructor and Description |
---|
IndexFetcher(NamedList initArgs,
ReplicationHandler handler,
SolrCore sc) |
Modifier and Type | Method and Description |
---|---|
protected static org.apache.lucene.util.Version |
checkOldestVersion(org.apache.lucene.index.SegmentInfos infos) |
protected static IndexFetcher.CompareResult |
compareFile(org.apache.lucene.store.Directory indexDir,
org.apache.lucene.util.Version version,
String filename,
Long backupIndexFileLen,
Long backupIndexFileChecksum) |
void |
destroy() |
protected static boolean |
modifyIndexProps(SolrCore solrCore,
String tmpIdxDirName)
If the index is stale by any chance, load index from a different dir in the data dir.
|
public static final String INDEX_PROPERTIES
public static final String REPLICATION_PROPERTIES
public IndexFetcher(NamedList initArgs, ReplicationHandler handler, SolrCore sc)
protected static org.apache.lucene.util.Version checkOldestVersion(org.apache.lucene.index.SegmentInfos infos)
protected static IndexFetcher.CompareResult compareFile(org.apache.lucene.store.Directory indexDir, org.apache.lucene.util.Version version, String filename, Long backupIndexFileLen, Long backupIndexFileChecksum)
protected static boolean modifyIndexProps(SolrCore solrCore, String tmpIdxDirName)
public void destroy()
Copyright © 2000–2015 The Apache Software Foundation. All rights reserved.