Package org.apache.solr.client.solrj.io
Class SolrClientCache
- java.lang.Object
-
- org.apache.solr.client.solrj.io.SolrClientCache
-
- All Implemented Interfaces:
Closeable
,AutoCloseable
public class SolrClientCache extends Object implements Closeable
The SolrClientCache caches SolrClients so they can be reused by different TupleStreams.
-
-
Constructor Summary
Constructors Constructor Description SolrClientCache()
SolrClientCache(org.apache.http.client.HttpClient apacheHttpClient)
Deprecated.SolrClientCache(org.apache.solr.client.solrj.impl.Http2SolrClient http2SolrClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
close()
org.apache.solr.client.solrj.impl.CloudSolrClient
getCloudSolrClient(String zkHost)
org.apache.solr.client.solrj.SolrClient
getHttpSolrClient(String baseUrl)
void
setDefaultZKHost(String zkHost)
-
-
-
Constructor Detail
-
SolrClientCache
public SolrClientCache()
-
SolrClientCache
@Deprecated(since="9.0") public SolrClientCache(org.apache.http.client.HttpClient apacheHttpClient)
Deprecated.
-
SolrClientCache
public SolrClientCache(org.apache.solr.client.solrj.impl.Http2SolrClient http2SolrClient)
-
-
Method Detail
-
setDefaultZKHost
public void setDefaultZKHost(String zkHost)
-
getCloudSolrClient
public org.apache.solr.client.solrj.impl.CloudSolrClient getCloudSolrClient(String zkHost)
-
getHttpSolrClient
public org.apache.solr.client.solrj.SolrClient getHttpSolrClient(String baseUrl)
-
close
public void close()
- Specified by:
close
in interfaceAutoCloseable
- Specified by:
close
in interfaceCloseable
-
-