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 |
static class |
IndexFetcher.IndexFetchResult |
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 <T> T |
getParameter(NamedList initArgs,
String configKey,
T defaultValue,
StringBuilder sb) |
public static final String INDEX_PROPERTIES
public static final String REPLICATION_PROPERTIES
public IndexFetcher(NamedList initArgs, ReplicationHandler handler, SolrCore sc)
protected <T> T getParameter(NamedList initArgs, String configKey, T defaultValue, StringBuilder sb)
protected static IndexFetcher.CompareResult compareFile(Directory indexDir, String filename, Long backupIndexFileLen, Long backupIndexFileChecksum)
public void destroy()
Copyright © 2000-2017 Apache Software Foundation. All Rights Reserved.