Spring Data Solr

org.springframework.data.solr.server.support
Class HttpSolrServerFactoryBean

java.lang.Object
  extended by org.springframework.data.solr.server.support.HttpSolrServerFactory
      extended by 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

Constructor Summary
HttpSolrServerFactoryBean()
           
 
Method Summary
 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)
           
 
Methods inherited from class org.springframework.data.solr.server.support.HttpSolrServerFactory
appendCoreToBaseUrl, getCores, getSolrServer
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.beans.factory.DisposableBean
destroy
 

Constructor Detail

HttpSolrServerFactoryBean

public HttpSolrServerFactoryBean()
Method Detail

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 -

Spring Data Solr

Copyright © 2011-2014-2014 Pivotal. All Rights Reserved.