public class HttpSolrClientFactoryBean extends HttpSolrClientFactory implements FactoryBean<org.apache.solr.client.solrj.SolrClient>, InitializingBean, DisposableBean
HttpSolrClientFactoryBean
replaces HttpSolrServerFactoryBean from version 1.x.OBJECT_TYPE_ATTRIBUTE
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) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
destroy
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface InitializingBean
Exception
public org.apache.solr.client.solrj.SolrClient getObject() throws Exception
getObject
in interface FactoryBean<org.apache.solr.client.solrj.SolrClient>
Exception
public 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()
SolrClientFactory
SolrClient
instancegetSolrClient
in interface SolrClientFactory
public void setSolrClient(org.apache.solr.client.solrj.SolrClient solrClient)
public void destroy()
destroy
in interface DisposableBean
protected void destroy(org.apache.solr.client.solrj.SolrClient client)
client
- Copyright © 2011–2021 Pivotal Software, Inc.. All rights reserved.