public interface SolrConfigManager
| Modifier and Type | Method and Description |
|---|---|
void |
deleteSolrClusterConfiguration(String solrClusterId,
String configurationName)
Deletes a configuration namespace in ZooKeeper.
|
InputStream |
getSolrClusterConfiguration(String solrClusterId,
String configurationName)
Gets the configuration from ZooKeeper.
|
Collection<String> |
getSolrClusterConfigurations(String solrClusterId)
Lists the configuration sets in ZooKeeper.
|
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. |
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. |
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.void deleteSolrClusterConfiguration(String solrClusterId, String configurationName)
solrClusterId - the solr cluster idconfigurationName - the name of the configuration in ZooKeeper.InputStream getSolrClusterConfiguration(String solrClusterId, String configurationName)
solrClusterId - the solr cluster idconfigurationName - the name of the configuration in ZooKeepervoid 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 directoryCollection<String> getSolrClusterConfigurations(String solrClusterId)
solrClusterId - the solr cluster idCopyright © 2015–2016. All rights reserved.