org.apache.solr.core
Interface ConfigSolr

All Known Implementing Classes:
ConfigSolrXml

public interface ConfigSolr

ConfigSolr is a new interface to aid us in obsoleting solr.xml and replacing it with solr.properties. The problem here is that the Config class is used for _all_ the xml file, e.g. solrconfig.xml and we can't mess with _that_ as part of this issue. Primarily used in CoreContainer at present.

This is already deprecated, it's only intended to exist for while transitioning to properties-based replacement for solr.xml

Since:
solr 4.3

Nested Class Summary
static class ConfigSolr.CfgProp
           
 
Field Summary
static String CORE_PROP_FILE
           
static String SOLR_XML_FILE
           
 
Method Summary
 void addPersistAllCores(Properties containerProperties, Map<String,String> rootSolrAttribs, Map<String,String> coresAttribs, File file)
           
 void addPersistCore(String coreName, Properties attribs, Map<String,String> props)
           
 String get(ConfigSolr.CfgProp prop, String def)
           
 List<String> getAllCoreNames()
           
 String getBadConfigCoreMessage(String name)
           
 boolean getBool(ConfigSolr.CfgProp prop, boolean defValue)
           
 String getCoreNameFromOrig(String origCoreName, SolrResourceLoader loader, String coreName)
           
 int getInt(ConfigSolr.CfgProp prop, int def)
           
 String getOrigProp(ConfigSolr.CfgProp prop, String def)
           
 String getProperty(String coreName, String property, String defaultVal)
           
 SolrConfig getSolrConfigFromZk(ZkController zkController, String zkConfigName, String solrConfigFileName, SolrResourceLoader resourceLoader)
           
 Properties getSolrProperties(String context)
           
 void initPersist()
           
 ShardHandlerFactory initShardHandler()
           
 boolean is50OrLater()
           
 Map<String,String> readCoreAttributes(String coreName)
           
 Properties readCoreProperties(String coreName)
           
 void substituteProperties()
           
 

Field Detail

CORE_PROP_FILE

static final String CORE_PROP_FILE
See Also:
Constant Field Values

SOLR_XML_FILE

static final String SOLR_XML_FILE
See Also:
Constant Field Values
Method Detail

getInt

int getInt(ConfigSolr.CfgProp prop,
           int def)

getBool

boolean getBool(ConfigSolr.CfgProp prop,
                boolean defValue)

get

String get(ConfigSolr.CfgProp prop,
           String def)

getOrigProp

String getOrigProp(ConfigSolr.CfgProp prop,
                   String def)

substituteProperties

void substituteProperties()

initShardHandler

ShardHandlerFactory initShardHandler()

getSolrProperties

Properties getSolrProperties(String context)

getSolrConfigFromZk

SolrConfig getSolrConfigFromZk(ZkController zkController,
                               String zkConfigName,
                               String solrConfigFileName,
                               SolrResourceLoader resourceLoader)

initPersist

void initPersist()

addPersistCore

void addPersistCore(String coreName,
                    Properties attribs,
                    Map<String,String> props)

addPersistAllCores

void addPersistAllCores(Properties containerProperties,
                        Map<String,String> rootSolrAttribs,
                        Map<String,String> coresAttribs,
                        File file)

getCoreNameFromOrig

String getCoreNameFromOrig(String origCoreName,
                           SolrResourceLoader loader,
                           String coreName)

getAllCoreNames

List<String> getAllCoreNames()

getProperty

String getProperty(String coreName,
                   String property,
                   String defaultVal)

readCoreProperties

Properties readCoreProperties(String coreName)

readCoreAttributes

Map<String,String> readCoreAttributes(String coreName)

getBadConfigCoreMessage

String getBadConfigCoreMessage(String name)

is50OrLater

boolean is50OrLater()


Copyright © 2000-2013 Apache Software Foundation. All Rights Reserved.