public class HttpSolrClientFactoryBean extends HttpSolrClientFactory implements FactoryBean<org.apache.solr.client.solrj.SolrClient>, InitializingBean, DisposableBean
HttpSolrClientFactoryBean replaces HttpSolrServerFactoryBean from version 1.x.| Constructor and Description |
|---|
HttpSolrClientFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet() |
void |
destroy() |
protected void |
destroy(org.apache.solr.client.solrj.SolrClient client) |
org.apache.solr.client.solrj.SolrClient |
getObject() |
Class<?> |
getObjectType() |
org.apache.solr.client.solrj.SolrClient |
getSolrClient()
Get base
SolrClient instance |
protected boolean |
isHttpSolrClient(org.apache.solr.client.solrj.SolrClient solrClient) |
boolean |
isSingleton() |
void |
setMaxConnections(Integer maxConnections) |
void |
setSolrClient(org.apache.solr.client.solrj.SolrClient solrClient) |
void |
setTimeout(Integer timeout) |
void |
setUrl(String url) |
appendCoreToBaseUrl, getCores, getSolrClientclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdestroypublic void afterPropertiesSet()
throws Exception
afterPropertiesSet in interface InitializingBeanExceptionpublic org.apache.solr.client.solrj.SolrClient getObject()
throws Exception
getObject in interface FactoryBean<org.apache.solr.client.solrj.SolrClient>Exceptionpublic Class<?> getObjectType()
getObjectType in interface FactoryBean<org.apache.solr.client.solrj.SolrClient>public boolean isSingleton()
isSingleton in interface FactoryBean<org.apache.solr.client.solrj.SolrClient>public void setUrl(String url)
public void setTimeout(Integer timeout)
public void setMaxConnections(Integer maxConnections)
protected final boolean isHttpSolrClient(org.apache.solr.client.solrj.SolrClient solrClient)
public org.apache.solr.client.solrj.SolrClient getSolrClient()
SolrClientFactorySolrClient instancegetSolrClient in interface SolrClientFactorypublic void setSolrClient(org.apache.solr.client.solrj.SolrClient solrClient)
public void destroy()
destroy in interface DisposableBeanprotected void destroy(org.apache.solr.client.solrj.SolrClient client)
client - Copyright © 2011-2015–2017 Pivotal Software, Inc.. All rights reserved.