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 StringconfigSetName(CoreDescriptor cd)Return a name for the ConfigSet for a core to be used for printing/diagnostic purposes.SolrResourceLoadercreateCoreResourceLoader(CoreDescriptor cd)Create a SolrResourceLoader for a coreprotected LonggetCurrentSchemaModificationVersion(String configSet, SolrConfig solrConfig, String schemaFileName)Returns a modification version for the schema file.protected PathlocateInstanceDir(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:ConfigSetServiceCreate a SolrResourceLoader for a core- Specified by:
createCoreResourceLoaderin classConfigSetService- Parameters:
cd- the core's CoreDescriptor- Returns:
- a SolrResourceLoader
-
configSetName
public String configSetName(CoreDescriptor cd)
Description copied from class:ConfigSetServiceReturn a name for the ConfigSet for a core to be used for printing/diagnostic purposes.- Specified by:
configSetNamein 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:ConfigSetServiceReturns a modification version for the schema file. Null may be returned if not known, and if so it defeats schema caching.- Specified by:
getCurrentSchemaModificationVersionin classConfigSetService
-
-