Package com.lucidworks.cloud.api.solr
Class SolrClusterComponent.OverrideCollectionSolrClient
- java.lang.Object
- 
- org.apache.solr.client.solrj.SolrClient
- 
- com.lucidworks.cloud.api.solr.SolrClusterComponent.OverrideCollectionSolrClient
 
 
- 
- All Implemented Interfaces:
- java.io.Closeable,- java.io.Serializable,- java.lang.AutoCloseable
 - Enclosing class:
- SolrClusterComponent
 
 public static class SolrClusterComponent.OverrideCollectionSolrClient extends org.apache.solr.client.solrj.SolrClientClass to remember the requested collection. Solr Client has a possibility to set a default collection, which will be used with methods who doesn't take a collection param. We cannot use that because of client is used in multithreaded manner.- See Also:
- Serialized Form
 
- 
- 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()org.apache.solr.client.solrj.impl.CloudSolrClientgetSolrClient()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.SolrClientadd, 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
 
- 
 
- 
- 
- 
Method Detail- 
requestpublic 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:
- requestin class- org.apache.solr.client.solrj.SolrClient
- Throws:
- org.apache.solr.client.solrj.SolrServerException
- java.io.IOException
 
 - 
getSolrClientpublic org.apache.solr.client.solrj.impl.CloudSolrClient getSolrClient() 
 - 
closepublic void close() 
 
- 
 
-