public class SolrXmlConfig extends Object
solr.xml
.Modifier and Type | Field and Description |
---|---|
static String |
SOLR_DATA_HOME |
static String |
SOLR_XML_FILE |
static String |
ZK_HOST |
Constructor and Description |
---|
SolrXmlConfig() |
Modifier and Type | Method and Description |
---|---|
static NodeConfig |
fromConfig(Path solrHome,
XmlConfigFile config) |
static NodeConfig |
fromFile(Path solrHome,
Path configFile,
Properties substituteProps) |
static NodeConfig |
fromInputStream(Path solrHome,
InputStream is,
Properties substituteProps) |
static NodeConfig |
fromSolrHome(Path solrHome,
Properties substituteProps) |
static NodeConfig |
fromString(Path solrHome,
String xml)
TEST-ONLY
|
static Properties |
wrapAndSetZkHostFromSysPropIfNeeded(Properties props)
Given some node Properties, checks if non-null and a 'zkHost' is alread included.
|
public static final String ZK_HOST
public static final String SOLR_XML_FILE
public static final String SOLR_DATA_HOME
public static Properties wrapAndSetZkHostFromSysPropIfNeeded(Properties props)
public static NodeConfig fromConfig(Path solrHome, XmlConfigFile config)
public static NodeConfig fromFile(Path solrHome, Path configFile, Properties substituteProps)
public static NodeConfig fromString(Path solrHome, String xml)
public static NodeConfig fromInputStream(Path solrHome, InputStream is, Properties substituteProps)
public static NodeConfig fromSolrHome(Path solrHome, Properties substituteProps)
Copyright © 2000-2021 Apache Software Foundation. All Rights Reserved.