protected static class SolrCloudTestCase.Builder extends Object
Constructor and Description |
---|
Builder(int nodeCount,
Path baseDir)
Create a builder
|
Modifier and Type | Method and Description |
---|---|
SolrCloudTestCase.Builder |
addConfig(String configName,
Path configPath)
Upload a collection config before tests start
|
void |
configure()
Configure and run the
MiniSolrCloudCluster |
SolrCloudTestCase.Builder |
withJettyConfig(org.apache.solr.client.solrj.embedded.JettyConfig jettyConfig)
Use a
JettyConfig to configure the cluster's jetty servers |
SolrCloudTestCase.Builder |
withProperty(String propertyName,
String propertyValue)
Set a cluster property
|
SolrCloudTestCase.Builder |
withSolrXml(Path solrXml)
Read solr.xml from the provided path
|
SolrCloudTestCase.Builder |
withSolrXml(String solrXml)
Use the provided string as solr.xml content
|
public Builder(int nodeCount, Path baseDir)
nodeCount
- the number of nodes in the clusterbaseDir
- a base directory for the clusterpublic SolrCloudTestCase.Builder withJettyConfig(org.apache.solr.client.solrj.embedded.JettyConfig jettyConfig)
JettyConfig
to configure the cluster's jetty serverspublic SolrCloudTestCase.Builder withSolrXml(String solrXml)
public SolrCloudTestCase.Builder withSolrXml(Path solrXml)
public SolrCloudTestCase.Builder addConfig(String configName, Path configPath)
configName
- the config nameconfigPath
- the path to the config filespublic SolrCloudTestCase.Builder withProperty(String propertyName, String propertyValue)
propertyName
- the property namepropertyValue
- the property valuepublic void configure() throws Exception
MiniSolrCloudCluster
Exception
- if an error occurs on startupCopyright © 2000-2016 Apache Software Foundation. All Rights Reserved.