com.armatiek.infofuze.result.solrj
Class SolrServerCache

java.lang.Object
  extended by com.armatiek.infofuze.result.solrj.SolrServerCache

public class SolrServerCache
extends java.lang.Object

A cache of Solr server instances (SolrJ client proxies)

Author:
Maarten Kroon

Constructor Summary
SolrServerCache()
           
 
Method Summary
static org.apache.solr.client.solrj.impl.CommonsHttpSolrServer getSolrServer(java.lang.String uri)
          Returns a SolrServer instance (a SolrJ client proxy) which is optimized for searching.
static org.apache.solr.client.solrj.impl.CommonsHttpSolrServer getUpdateSolrServer(java.lang.String uri)
          Returns a SolrServer instance (a SolrJ client proxy) which is optimized for updating.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SolrServerCache

public SolrServerCache()
Method Detail

getSolrServer

public static org.apache.solr.client.solrj.impl.CommonsHttpSolrServer getSolrServer(java.lang.String uri)
                                                                             throws java.net.MalformedURLException
Returns a SolrServer instance (a SolrJ client proxy) which is optimized for searching.

Parameters:
uri - The uri of the Solr instance
Throws:
java.net.MalformedURLException

getUpdateSolrServer

public static org.apache.solr.client.solrj.impl.CommonsHttpSolrServer getUpdateSolrServer(java.lang.String uri)
                                                                                   throws java.net.MalformedURLException
Returns a SolrServer instance (a SolrJ client proxy) which is optimized for updating.

Parameters:
uri - The uri of the Solr instance
Throws:
java.net.MalformedURLException