public interface SolrConfigManager
Modifier and Type | Method and Description |
---|---|
ServiceCall<Void> |
deleteSolrClusterConfiguration(String solrClusterId,
String configurationName)
Deletes a configuration namespace in ZooKeeper.
|
ServiceCall<InputStream> |
getSolrClusterConfiguration(String solrClusterId,
String configurationName)
Gets the configuration from ZooKeeper.
|
ServiceCall<SolrConfigs> |
getSolrClusterConfigurations(String solrClusterId)
Lists the configuration sets in ZooKeeper.
|
ServiceCall<Void> |
uploadSolrClusterConfigurationDirectory(String solrClusterId,
String configName,
File configDirectory)
Uploads a configuration
File to ZooKeeper's namespace, including schema.xml,
solrconfig.xml, and all other necessary config files to configure a SolrCloud collection. |
ServiceCall<Void> |
uploadSolrClusterConfigurationZip(String solrClusterId,
String configName,
File zippedConfig)
Uploads a configuration ZIP
File to ZooKeeper's namespace, including schema.xml,
solrconfig.xml, and all other necessary config files to configure a SolrCloud collection. |
ServiceCall<Void> uploadSolrClusterConfigurationZip(String solrClusterId, String configName, File zippedConfig)
File
to ZooKeeper's namespace, including schema.xml,
solrconfig.xml, and all other necessary config files to configure a SolrCloud collection.
For uploading a directory, use
uploadSolrClusterConfigurationDirectory(String , String, File)
instead. Config files
on the XSLT path will not be uploaded.
solrClusterId
- the solr cluster idconfigName
- the name of the config in ZooKeeper. This name is used when referencing the
config when creating a collection.zippedConfig
- the ZIP file to upload.ServiceCall<Void> deleteSolrClusterConfiguration(String solrClusterId, String configurationName)
solrClusterId
- the solr cluster idconfigurationName
- the name of the configuration in ZooKeeper.ServiceCall<InputStream> getSolrClusterConfiguration(String solrClusterId, String configurationName)
solrClusterId
- the solr cluster idconfigurationName
- the name of the configuration in ZooKeeperServiceCall<Void> uploadSolrClusterConfigurationDirectory(String solrClusterId, String configName, File configDirectory)
File
to ZooKeeper's namespace, including schema.xml,
solrconfig.xml, and all other necessary config files to configure a SolrCloud collection.
The configuration directory is sent to Solr as a ZIP file. For uploading a ZIP file directly,
use uploadSolrClusterConfigurationZip(String, String, File)
instead. Config files on
the XSLT path will not be uploaded.
solrClusterId
- the solr cluster idconfigName
- the name of the config in ZooKeeper. This name is used when referencing the
config when creating a collection.configDirectory
- the directory to upload.IllegalArgumentException
- if configDirectory is not a directoryServiceCall<SolrConfigs> getSolrClusterConfigurations(String solrClusterId)
solrClusterId
- the solr cluster idCopyright © 2015–2016. All rights reserved.