Package org.apache.solr.core
Class ConfigSetService.Standalone
- java.lang.Object
-
- org.apache.solr.core.ConfigSetService
-
- org.apache.solr.core.ConfigSetService.Standalone
-
- Enclosing class:
- ConfigSetService
public static class ConfigSetService.Standalone extends ConfigSetService
The Solr standalone version of ConfigSetService. Loads a ConfigSet defined by the core's configSet property, looking for a directory named for the configSet property value underneath a base directory. If no configSet property is set, loads the ConfigSet instead from the core's instance directory.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.solr.core.ConfigSetService
ConfigSetService.Standalone
-
-
Field Summary
-
Fields inherited from class org.apache.solr.core.ConfigSetService
parentLoader
-
-
Constructor Summary
Constructors Constructor Description Standalone(SolrResourceLoader loader, boolean shareSchema, Path configSetBase)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
configSetName(CoreDescriptor cd)
Return a name for the ConfigSet for a core to be used for printing/diagnostic purposes.SolrResourceLoader
createCoreResourceLoader(CoreDescriptor cd)
Create a SolrResourceLoader for a coreprotected Long
getCurrentSchemaModificationVersion(String configSet, SolrConfig solrConfig, String schemaFileName)
Returns a modification version for the schema file.protected Path
locateInstanceDir(CoreDescriptor cd)
-
Methods inherited from class org.apache.solr.core.ConfigSetService
createConfigSetService, createIndexSchema, createSolrConfig, loadConfigSet, loadConfigSetFlags, loadConfigSetProperties
-
-
-
-
Constructor Detail
-
Standalone
public Standalone(SolrResourceLoader loader, boolean shareSchema, Path configSetBase)
-
-
Method Detail
-
createCoreResourceLoader
public SolrResourceLoader createCoreResourceLoader(CoreDescriptor cd)
Description copied from class:ConfigSetService
Create a SolrResourceLoader for a core- Specified by:
createCoreResourceLoader
in classConfigSetService
- Parameters:
cd
- the core's CoreDescriptor- Returns:
- a SolrResourceLoader
-
configSetName
public String configSetName(CoreDescriptor cd)
Description copied from class:ConfigSetService
Return a name for the ConfigSet for a core to be used for printing/diagnostic purposes.- Specified by:
configSetName
in classConfigSetService
- Parameters:
cd
- the core's CoreDescriptor- Returns:
- a name for the core's ConfigSet
-
locateInstanceDir
protected Path locateInstanceDir(CoreDescriptor cd)
-
getCurrentSchemaModificationVersion
protected Long getCurrentSchemaModificationVersion(String configSet, SolrConfig solrConfig, String schemaFileName)
Description copied from class:ConfigSetService
Returns a modification version for the schema file. Null may be returned if not known, and if so it defeats schema caching.- Specified by:
getCurrentSchemaModificationVersion
in classConfigSetService
-
-