Package org.apache.solr.client.solrj.io
Class SolrClientCache
- java.lang.Object
-
- org.apache.solr.client.solrj.io.SolrClientCache
-
- All Implemented Interfaces:
Serializable
public class SolrClientCache extends Object implements Serializable
The SolrClientCache caches SolrClients so they can be reused by different TupleStreams.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SolrClientCache()
SolrClientCache(org.apache.http.client.HttpClient httpClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
CloudSolrClient
getCloudSolrClient(String zkHost)
HttpSolrClient
getHttpSolrClient(String host)
-
-
-
Method Detail
-
getCloudSolrClient
public CloudSolrClient getCloudSolrClient(String zkHost)
-
getHttpSolrClient
public HttpSolrClient getHttpSolrClient(String host)
-
close
public void close()
-
-