public class EmbeddedSolrServerFactory extends Object implements SolrServerFactory
ResourceUtils
, therefore it is possible to place them in classpath. Use this class for Testing. It
is not recommended for production.Modifier | Constructor and Description |
---|---|
protected |
EmbeddedSolrServerFactory() |
|
EmbeddedSolrServerFactory(String solrHome) |
Modifier and Type | Method and Description |
---|---|
org.apache.solr.client.solrj.embedded.EmbeddedSolrServer |
createPathConfiguredSolrServer(String path) |
String |
getCore()
Get the core the SolrServer instance is bound to
|
org.apache.solr.client.solrj.embedded.EmbeddedSolrServer |
getSolrServer()
Get a configured SolrServer instance
|
protected void |
initSolrServer() |
void |
setSolrHome(String solrHome) |
void |
shutdownSolrServer() |
protected EmbeddedSolrServerFactory()
public EmbeddedSolrServerFactory(String solrHome) throws ParserConfigurationException, IOException, SAXException
solrHome
- Any Path expression valid for use with ResourceUtils
that points to the
solr.solr.home
directoryParserConfigurationException
IOException
SAXException
public org.apache.solr.client.solrj.embedded.EmbeddedSolrServer getSolrServer()
SolrServerFactory
getSolrServer
in interface SolrServerFactory
protected void initSolrServer()
public final org.apache.solr.client.solrj.embedded.EmbeddedSolrServer createPathConfiguredSolrServer(String path) throws ParserConfigurationException, IOException, SAXException
path
- Any Path expression valid for use with ResourceUtils
EmbeddedSolrServer
ParserConfigurationException
IOException
SAXException
public void shutdownSolrServer()
public String getCore()
SolrServerFactory
getCore
in interface SolrServerFactory
public void setSolrHome(String solrHome)
Copyright © 2011-2013-2013 SpringSource. All Rights Reserved.