Package org.apache.solr.cloud
Class CloudConfigSetService
- java.lang.Object
-
- org.apache.solr.core.ConfigSetService
-
- org.apache.solr.cloud.CloudConfigSetService
-
public class CloudConfigSetService extends ConfigSetService
SolrCloud ConfigSetService impl.
-
-
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 CloudConfigSetService(SolrResourceLoader loader, boolean shareSchema, ZkController zkController)
-
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 schemaFile)
Returns a modification version for the schema file.protected NamedList
loadConfigSetFlags(CoreDescriptor cd, SolrResourceLoader loader)
Return the ConfigSet flags or null if none.-
Methods inherited from class org.apache.solr.core.ConfigSetService
createConfigSetService, createIndexSchema, createSolrConfig, loadConfigSet, loadConfigSetProperties
-
-
-
-
Constructor Detail
-
CloudConfigSetService
public CloudConfigSetService(SolrResourceLoader loader, boolean shareSchema, ZkController zkController)
-
-
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
-
loadConfigSetFlags
protected NamedList loadConfigSetFlags(CoreDescriptor cd, SolrResourceLoader loader)
Description copied from class:ConfigSetService
Return the ConfigSet flags or null if none.- Overrides:
loadConfigSetFlags
in classConfigSetService
-
getCurrentSchemaModificationVersion
protected Long getCurrentSchemaModificationVersion(String configSet, SolrConfig solrConfig, String schemaFile)
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
-
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
-
-