public interface SolrConfigManager
| Modifier and Type | Method and Description |
|---|---|
ServiceCall<java.lang.Void> |
deleteSolrClusterConfiguration(java.lang.String solrClusterId,
java.lang.String configurationName)
Deletes a configuration namespace in ZooKeeper.
|
ServiceCall<java.io.InputStream> |
getSolrClusterConfiguration(java.lang.String solrClusterId,
java.lang.String configurationName)
Gets the configuration from ZooKeeper.
|
ServiceCall<SolrConfigs> |
getSolrClusterConfigurations(java.lang.String solrClusterId)
Lists the configuration sets in ZooKeeper.
|
ServiceCall<java.lang.Void> |
uploadSolrClusterConfigurationDirectory(java.lang.String solrClusterId,
java.lang.String configName,
java.io.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<java.lang.Void> |
uploadSolrClusterConfigurationZip(java.lang.String solrClusterId,
java.lang.String configName,
java.io.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<java.lang.Void> uploadSolrClusterConfigurationZip(java.lang.String solrClusterId, java.lang.String configName, java.io.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<java.lang.Void> deleteSolrClusterConfiguration(java.lang.String solrClusterId, java.lang.String configurationName)
solrClusterId - the solr cluster idconfigurationName - the name of the configuration in ZooKeeper.ServiceCall<java.io.InputStream> getSolrClusterConfiguration(java.lang.String solrClusterId, java.lang.String configurationName)
solrClusterId - the solr cluster idconfigurationName - the name of the configuration in ZooKeeperServiceCall<java.lang.Void> uploadSolrClusterConfigurationDirectory(java.lang.String solrClusterId, java.lang.String configName, java.io.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.java.lang.IllegalArgumentException - if configDirectory is not a directoryServiceCall<SolrConfigs> getSolrClusterConfigurations(java.lang.String solrClusterId)
solrClusterId - the solr cluster id