org.broadleafcommerce.core.search.service.solr
Class SolrContext

java.lang.Object
  extended by org.broadleafcommerce.core.search.service.solr.SolrContext

public class SolrContext
extends Object

Provides a class that will statically hold the Solr server

Author:
Andre Azzolini (apazzolini)

Field Summary
static String PRIMARY
           
protected static org.apache.solr.client.solrj.SolrServer primaryServer
           
static String REINDEX
           
protected static org.apache.solr.client.solrj.SolrServer reindexServer
           
 
Constructor Summary
SolrContext()
           
 
Method Summary
static org.apache.solr.client.solrj.SolrServer getReindexServer()
           
static org.apache.solr.client.solrj.SolrServer getServer()
           
static boolean isSingleCoreMode()
           
static void setPrimaryServer(org.apache.solr.client.solrj.SolrServer server)
           
static void setReindexServer(org.apache.solr.client.solrj.SolrServer server)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PRIMARY

public static final String PRIMARY
See Also:
Constant Field Values

REINDEX

public static final String REINDEX
See Also:
Constant Field Values

primaryServer

protected static org.apache.solr.client.solrj.SolrServer primaryServer

reindexServer

protected static org.apache.solr.client.solrj.SolrServer reindexServer
Constructor Detail

SolrContext

public SolrContext()
Method Detail

setPrimaryServer

public static void setPrimaryServer(org.apache.solr.client.solrj.SolrServer server)

setReindexServer

public static void setReindexServer(org.apache.solr.client.solrj.SolrServer server)

getServer

public static org.apache.solr.client.solrj.SolrServer getServer()

getReindexServer

public static org.apache.solr.client.solrj.SolrServer getReindexServer()

isSingleCoreMode

public static boolean isSingleCoreMode()


Copyright © 2013. All Rights Reserved.