Package org.codice.solr.factory.impl
Class SolrCloudClientFactory
java.lang.Object
org.codice.solr.factory.impl.SolrCloudClientFactory
- All Implemented Interfaces:
org.codice.solr.factory.SolrClientFactory
public class SolrCloudClientFactory
extends Object
implements org.codice.solr.factory.SolrClientFactory
Factory class used to create new
Uses the following system properties when creating an instance:
CloudSolrClient clients. Uses the following system properties when creating an instance:
- solr.cloud.zookeeper: Comma-separated list of Zookeeper hosts
- org.codice.ddf.system.threadPoolSize: Solr query thread pool size
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckConfig(String zookeeperHosts) booleancreateCollection(String collection, org.apache.solr.client.solrj.impl.CloudSolrClient client) org.apache.solr.client.solrj.SolrClient
-
Constructor Details
-
SolrCloudClientFactory
public SolrCloudClientFactory()
-
-
Method Details
-
newClient
- Specified by:
newClientin interfaceorg.codice.solr.factory.SolrClientFactory
-
createCollection
public boolean createCollection(String collection, org.apache.solr.client.solrj.impl.CloudSolrClient client) throws SolrFactoryException - Throws:
SolrFactoryException
-
checkConfig
-