Class InternalSolrClientCache

java.lang.Object
org.apache.solr.client.solrj.io.SolrClientCache
org.apache.solr.cloud.InternalSolrClientCache
All Implemented Interfaces:
Closeable, AutoCloseable

public class InternalSolrClientCache extends SolrClientCache
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).
  • 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:
      isInternal in class SolrClientCache
    • getCloudSolrClient

      public org.apache.solr.client.solrj.impl.CloudSolrClient getCloudSolrClient(org.apache.solr.client.solrj.impl.CloudSolrClient.CloudSolrClientConnection solrConnection)
      Overrides:
      getCloudSolrClient in class SolrClientCache
    • newHttpSolrClientBuilder

      protected org.apache.solr.client.solrj.impl.HttpSolrClient.BuilderBase<?,?> newHttpSolrClientBuilder(String url)
      Overrides:
      newHttpSolrClientBuilder in class SolrClientCache