org.springframework.data.solr.server.support
Class HttpSolrServerFactoryBean
java.lang.Object
org.springframework.data.solr.server.support.HttpSolrServerFactory
org.springframework.data.solr.server.support.HttpSolrServerFactoryBean
- All Implemented Interfaces:
- DisposableBean, FactoryBean<org.apache.solr.client.solrj.SolrServer>, InitializingBean, SolrServerFactory
public class HttpSolrServerFactoryBean
- extends HttpSolrServerFactory
- implements FactoryBean<org.apache.solr.client.solrj.SolrServer>, InitializingBean, DisposableBean
- Author:
- Christoph Strobl
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HttpSolrServerFactoryBean
public HttpSolrServerFactoryBean()
afterPropertiesSet
public void afterPropertiesSet()
throws Exception
- Specified by:
afterPropertiesSet in interface InitializingBean
- Throws:
Exception
getObject
public org.apache.solr.client.solrj.SolrServer getObject()
throws Exception
- Specified by:
getObject in interface FactoryBean<org.apache.solr.client.solrj.SolrServer>
- Throws:
Exception
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType in interface FactoryBean<org.apache.solr.client.solrj.SolrServer>
isSingleton
public boolean isSingleton()
- Specified by:
isSingleton in interface FactoryBean<org.apache.solr.client.solrj.SolrServer>
setUrl
public void setUrl(String url)
setTimeout
public void setTimeout(Integer timeout)
setMaxConnections
public void setMaxConnections(Integer maxConnections)
isHttpSolrServer
protected final boolean isHttpSolrServer(org.apache.solr.client.solrj.SolrServer solrServer)
getSolrServer
public org.apache.solr.client.solrj.SolrServer getSolrServer()
- Description copied from interface:
SolrServerFactory
- Get base
SolrServer instance
- Specified by:
getSolrServer in interface SolrServerFactory
- Returns:
- a reusable solrServer instance
setSolrServer
public void setSolrServer(org.apache.solr.client.solrj.SolrServer solrServer)
destroy
public void destroy()
- Specified by:
destroy in interface DisposableBean
destroy
protected void destroy(org.apache.solr.client.solrj.SolrServer server)
- Parameters:
server -
Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.