public abstract class ConfigSolr extends Object
Modifier and Type | Class and Description |
---|---|
protected static class |
ConfigSolr.CfgProp |
Modifier and Type | Field and Description |
---|---|
protected Config |
config |
protected static String |
DEFAULT_CORE_ADMIN_PATH |
protected static org.slf4j.Logger |
log |
protected Map<ConfigSolr.CfgProp,Object> |
propMap |
static String |
SOLR_XML_FILE |
Modifier | Constructor and Description |
---|---|
protected |
ConfigSolr() |
|
ConfigSolr(Config config) |
protected static org.slf4j.Logger log
public static final String SOLR_XML_FILE
protected static final String DEFAULT_CORE_ADMIN_PATH
protected Config config
protected Map<ConfigSolr.CfgProp,Object> propMap
public ConfigSolr(Config config)
protected ConfigSolr()
public static ConfigSolr fromFile(SolrResourceLoader loader, File configFile)
public static ConfigSolr fromString(SolrResourceLoader loader, String xml)
public static ConfigSolr fromInputStream(SolrResourceLoader loader, InputStream is)
public static ConfigSolr fromSolrHome(SolrResourceLoader loader, String solrHome)
public static ConfigSolr fromConfig(Config config, String originalXml)
public abstract CoresLocator getCoresLocator()
public String getCoreRootDirectory()
public PluginInfo getShardHandlerFactoryPluginInfo()
protected abstract String getShardHandlerFactoryConfigPath()
public String getZkHost()
public int getZkClientTimeout()
public String getZkHostPort()
public String getZkHostContext()
public String getHost()
public int getLeaderVoteWait()
public int getLeaderConflictResolveWait()
public int getAutoReplicaFailoverWaitAfterExpiration()
public int getAutoReplicaFailoverWorkLoopDelay()
public int getAutoReplicaFailoverBadNodeExpiration()
public boolean getGenericCoreNodeNames()
public int getDistributedConnectionTimeout()
public int getDistributedSocketTimeout()
public int getMaxUpdateConnections()
public int getMaxUpdateConnectionsPerHost()
public int getCoreLoadThreadCount()
public String getSharedLibDirectory()
public String getDefaultCoreName()
public abstract boolean isPersistent()
public String getAdminPath()
public String getCoreAdminHandlerClass()
public String getCollectionsHandlerClass()
public String getInfoHandlerClass()
public boolean hasSchemaCache()
public String getManagementPath()
public String getConfigSetBaseDirectory()
public LogWatcherConfig getLogWatcherConfig()
public int getTransientCacheSize()
public ConfigSetService createCoreConfigService(SolrResourceLoader loader, ZkController zkController)
public Config getConfig()
public <T> T get(ConfigSolr.CfgProp key, T defaultValue)
public Properties getSolrProperties(String path)
protected Properties readProperties(Node node) throws XPathExpressionException
XPathExpressionException
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.