public abstract class ConfigSetService extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ConfigSetService.Standalone
The Solr standalone version of ConfigSetService.
|
| Modifier and Type | Field and Description |
|---|---|
protected SolrResourceLoader |
parentLoader |
| Constructor and Description |
|---|
ConfigSetService(SolrResourceLoader loader,
boolean shareSchema)
Create a new ConfigSetService
|
| Modifier and Type | Method and Description |
|---|---|
abstract String |
configSetName(CoreDescriptor cd)
Return a name for the ConfigSet for a core to be used for printing/diagnostic purposes.
|
static ConfigSetService |
createConfigSetService(NodeConfig nodeConfig,
SolrResourceLoader loader,
ZkController zkController) |
protected abstract SolrResourceLoader |
createCoreResourceLoader(CoreDescriptor cd)
Create a SolrResourceLoader for a core
|
protected IndexSchema |
createIndexSchema(CoreDescriptor cd,
SolrConfig solrConfig)
Create an IndexSchema object for a core.
|
protected SolrConfig |
createSolrConfig(CoreDescriptor cd,
SolrResourceLoader loader,
boolean isTrusted)
Create a SolrConfig object for a core
|
protected abstract Long |
getCurrentSchemaModificationVersion(String configSet,
SolrConfig solrConfig,
String schemaFile)
Returns a modification version for the schema file.
|
ConfigSet |
loadConfigSet(CoreDescriptor dcore)
Load the ConfigSet for a core
|
protected NamedList |
loadConfigSetFlags(CoreDescriptor cd,
SolrResourceLoader loader)
Return the ConfigSet flags or null if none.
|
protected NamedList |
loadConfigSetProperties(CoreDescriptor cd,
SolrResourceLoader loader)
Return the ConfigSet properties or null if none.
|
protected final SolrResourceLoader parentLoader
public ConfigSetService(SolrResourceLoader loader, boolean shareSchema)
loader - the CoreContainer's resource loadershareSchema - should we share the IndexSchema among cores of same config?public static ConfigSetService createConfigSetService(NodeConfig nodeConfig, SolrResourceLoader loader, ZkController zkController)
public final ConfigSet loadConfigSet(CoreDescriptor dcore)
dcore - the core's CoreDescriptorprotected SolrConfig createSolrConfig(CoreDescriptor cd, SolrResourceLoader loader, boolean isTrusted)
cd - the core's CoreDescriptorloader - the core's resource loaderisTrusted - is the configset trusted?protected IndexSchema createIndexSchema(CoreDescriptor cd, SolrConfig solrConfig)
cd - the core's CoreDescriptorsolrConfig - the core's SolrConfigprotected abstract Long getCurrentSchemaModificationVersion(String configSet, SolrConfig solrConfig, String schemaFile)
protected NamedList loadConfigSetProperties(CoreDescriptor cd, SolrResourceLoader loader)
cd - the core's CoreDescriptorloader - the core's resource loaderConfigSetPropertiesprotected NamedList loadConfigSetFlags(CoreDescriptor cd, SolrResourceLoader loader)
protected abstract SolrResourceLoader createCoreResourceLoader(CoreDescriptor cd)
cd - the core's CoreDescriptorpublic abstract String configSetName(CoreDescriptor cd)
cd - the core's CoreDescriptorCopyright © 2000-2020 Apache Software Foundation. All Rights Reserved.