public class HttpSolrServerFactoryBean extends HttpSolrServerFactory implements FactoryBean<org.apache.solr.client.solrj.SolrServer>, InitializingBean, DisposableBean
Constructor and Description |
---|
HttpSolrServerFactoryBean() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
void |
destroy() |
protected void |
destroy(org.apache.solr.client.solrj.SolrServer server) |
org.apache.solr.client.solrj.SolrServer |
getObject() |
Class<?> |
getObjectType() |
org.apache.solr.client.solrj.SolrServer |
getSolrServer()
Get base
SolrServer instance |
protected boolean |
isHttpSolrServer(org.apache.solr.client.solrj.SolrServer solrServer) |
boolean |
isSingleton() |
void |
setMaxConnections(Integer maxConnections) |
void |
setSolrServer(org.apache.solr.client.solrj.SolrServer solrServer) |
void |
setTimeout(Integer timeout) |
void |
setUrl(String url) |
appendCoreToBaseUrl, getCores, getSolrServer
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.SolrServer getObject() throws Exception
getObject
in interface FactoryBean<org.apache.solr.client.solrj.SolrServer>
Exception
public Class<?> getObjectType()
getObjectType
in interface FactoryBean<org.apache.solr.client.solrj.SolrServer>
public boolean isSingleton()
isSingleton
in interface FactoryBean<org.apache.solr.client.solrj.SolrServer>
public void setUrl(String url)
public void setTimeout(Integer timeout)
public void setMaxConnections(Integer maxConnections)
protected final boolean isHttpSolrServer(org.apache.solr.client.solrj.SolrServer solrServer)
public org.apache.solr.client.solrj.SolrServer getSolrServer()
SolrServerFactory
SolrServer
instancegetSolrServer
in interface SolrServerFactory
public void setSolrServer(org.apache.solr.client.solrj.SolrServer solrServer)
public void destroy()
destroy
in interface DisposableBean
protected void destroy(org.apache.solr.client.solrj.SolrServer server)
server
- Copyright © 2011-2013-2013 Pivotal. All Rights Reserved.