Class SolrStandaloneSearchProvider.ClusterSolrClient

  • All Implemented Interfaces:
    java.io.Closeable, java.io.Serializable, java.lang.AutoCloseable
    Enclosing class:
    SolrStandaloneSearchProvider

    protected static class SolrStandaloneSearchProvider.ClusterSolrClient
    extends org.apache.solr.client.solrj.SolrClient
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void close()  
      protected org.apache.solr.client.solrj.impl.HttpSolrClient createSolrClient​(java.lang.String baseSolrUrl)  
      protected java.util.Map<java.lang.String,​org.apache.solr.client.solrj.impl.HttpSolrClient> createSolrClients​(java.util.List<java.lang.String> baseSolrUrls)  
      org.apache.http.client.HttpClient getHttpClient()  
      org.apache.solr.client.solrj.SolrClient getNodeClient​(org.apache.solr.client.solrj.SolrClient solrClient, java.lang.String node)  
      java.util.Collection<java.lang.String> getNodes()  
      org.apache.solr.common.util.NamedList<java.lang.Object> request​(org.apache.solr.client.solrj.SolrRequest request, java.lang.String collection)  
      • Methods inherited from class org.apache.solr.client.solrj.SolrClient

        add, add, add, add, add, add, add, add, add, add, addBean, addBean, addBean, addBean, addBeans, addBeans, addBeans, addBeans, addBeans, addBeans, commit, commit, commit, commit, commit, commit, deleteById, deleteById, deleteById, deleteById, deleteById, deleteById, deleteById, deleteById, deleteByQuery, deleteByQuery, deleteByQuery, deleteByQuery, getBinder, getById, getById, getById, getById, getById, getById, getById, getById, optimize, optimize, optimize, optimize, optimize, optimize, ping, ping, query, query, query, query, queryAndStreamResponse, queryAndStreamResponse, queryAndStreamResponse, request, rollback, rollback
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • REQUEST_NODE_SEPARATOR

        public static final java.lang.String REQUEST_NODE_SEPARATOR
        See Also:
        Constant Field Values
    • Method Detail

      • createSolrClients

        protected final java.util.Map<java.lang.String,​org.apache.solr.client.solrj.impl.HttpSolrClient> createSolrClients​(java.util.List<java.lang.String> baseSolrUrls)
      • createSolrClient

        protected final org.apache.solr.client.solrj.impl.HttpSolrClient createSolrClient​(java.lang.String baseSolrUrl)
      • getHttpClient

        public org.apache.http.client.HttpClient getHttpClient()
      • getNodes

        public java.util.Collection<java.lang.String> getNodes()
      • getNodeClient

        public org.apache.solr.client.solrj.SolrClient getNodeClient​(org.apache.solr.client.solrj.SolrClient solrClient,
                                                                     java.lang.String node)
      • request

        public org.apache.solr.common.util.NamedList<java.lang.Object> request​(org.apache.solr.client.solrj.SolrRequest request,
                                                                               java.lang.String collection)
                                                                        throws org.apache.solr.client.solrj.SolrServerException,
                                                                               java.io.IOException
        Specified by:
        request in class org.apache.solr.client.solrj.SolrClient
        Throws:
        org.apache.solr.client.solrj.SolrServerException
        java.io.IOException
      • close

        public void close()