Package org.apache.solr.cloud
Class InternalSolrClientCache
java.lang.Object
org.apache.solr.client.solrj.io.SolrClientCache
org.apache.solr.cloud.InternalSolrClientCache
- All Implemented Interfaces:
Closeable,AutoCloseable
A restricted
SolrClientCache for internal Solr use. Connections to clusters other than
the local one must pass a validator; see ZkController.validateSolrConnection(org.apache.solr.client.solrj.impl.CloudSolrClient.CloudSolrClientConnection).-
Field Summary
Fields inherited from class org.apache.solr.client.solrj.io.SolrClientCache
cloudSolClients, httpSolrClient, httpSolrClients, minConnTimeout, minSocketTimeout -
Constructor Summary
ConstructorsConstructorDescriptionInternalSolrClientCache(HttpJettySolrClient httpSolrClient, org.apache.solr.client.solrj.impl.CloudSolrClient.CloudSolrClientConnection solrConnection, Consumer<org.apache.solr.client.solrj.impl.CloudSolrClient.CloudSolrClientConnection> connectionValidator) -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.solr.client.solrj.impl.CloudSolrClientgetCloudSolrClient(org.apache.solr.client.solrj.impl.CloudSolrClient.CloudSolrClientConnection solrConnection) protected booleanprotected org.apache.solr.client.solrj.impl.HttpSolrClient.BuilderBase<?, ?> Methods inherited from class org.apache.solr.client.solrj.io.SolrClientCache
close, getCloudSolrClient, getHttpSolrClient, newCloudSolrClient, newCloudSolrClientBuilder, setBasicAuthCredentials
-
Constructor Details
-
InternalSolrClientCache
public InternalSolrClientCache(HttpJettySolrClient httpSolrClient, org.apache.solr.client.solrj.impl.CloudSolrClient.CloudSolrClientConnection solrConnection, Consumer<org.apache.solr.client.solrj.impl.CloudSolrClient.CloudSolrClientConnection> connectionValidator)
-
-
Method Details
-
isInternal
protected boolean isInternal()- Overrides:
isInternalin classSolrClientCache
-
getCloudSolrClient
public org.apache.solr.client.solrj.impl.CloudSolrClient getCloudSolrClient(org.apache.solr.client.solrj.impl.CloudSolrClient.CloudSolrClientConnection solrConnection) - Overrides:
getCloudSolrClientin classSolrClientCache
-
newHttpSolrClientBuilder
protected org.apache.solr.client.solrj.impl.HttpSolrClient.BuilderBase<?,?> newHttpSolrClientBuilder(String url) - Overrides:
newHttpSolrClientBuilderin classSolrClientCache
-