Class SolrStandaloneSearchProvider.ClusterSolrClient
- java.lang.Object
-
- org.apache.solr.client.solrj.SolrClient
-
- de.hybris.platform.solrfacetsearch.solr.impl.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
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSolrStandaloneSearchProvider.ClusterSolrClient.Builderprotected static classSolrStandaloneSearchProvider.ClusterSolrClient.ClusterNodeSolrClient
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringREQUEST_NODE_SEPARATOR
-
Constructor Summary
Constructors Modifier Constructor Description protectedClusterSolrClient(SolrStandaloneSearchProvider.ClusterSolrClient.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()protected org.apache.solr.client.solrj.impl.HttpSolrClientcreateSolrClient(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.HttpClientgetHttpClient()org.apache.solr.client.solrj.SolrClientgetNodeClient(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
-
-
-
-
Field Detail
-
REQUEST_NODE_SEPARATOR
public static final java.lang.String REQUEST_NODE_SEPARATOR
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ClusterSolrClient
protected ClusterSolrClient(SolrStandaloneSearchProvider.ClusterSolrClient.Builder builder)
-
-
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:
requestin classorg.apache.solr.client.solrj.SolrClient- Throws:
org.apache.solr.client.solrj.SolrServerExceptionjava.io.IOException
-
close
public void close()
-
-