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 IndexFetcher.CompareResult |
compareFile(Directory indexDir,
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 IndexFetcher.CompareResult compareFile(Directory indexDir, String filename, Long backupIndexFileLen, Long backupIndexFileChecksum)
protected static boolean modifyIndexProps(SolrCore solrCore, String tmpIdxDirName)
public void destroy()
Copyright © 2000-2016 Apache Software Foundation. All Rights Reserved.