|
Spring Data Solr | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.data.solr.server.support.EmbeddedSolrServerFactory
public class EmbeddedSolrServerFactory
The EmbeddedSolrServerFactory allows hosting of an SolrServer instance in embedded mode. Configuration files are
loaded via ResourceUtils, therefore it is possible to place them in classpath. Use this class for Testing. It
is not recommended for production.
| Constructor Summary | |
|---|---|
protected |
EmbeddedSolrServerFactory()
|
|
EmbeddedSolrServerFactory(String solrHome)
|
| Method Summary | |
|---|---|
org.apache.solr.client.solrj.embedded.EmbeddedSolrServer |
createPathConfiguredSolrServer(String path)
|
void |
destroy()
|
List<String> |
getCores()
Get list of cores |
org.apache.solr.client.solrj.embedded.EmbeddedSolrServer |
getSolrServer()
Get base SolrServer instance |
org.apache.solr.client.solrj.SolrServer |
getSolrServer(String core)
Get configured SolrServer for specific core |
protected void |
initSolrServer()
|
void |
setSolrHome(String solrHome)
|
void |
shutdownSolrServer()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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 directory
ParserConfigurationException
IOException
SAXException| Method Detail |
|---|
public org.apache.solr.client.solrj.embedded.EmbeddedSolrServer getSolrServer()
SolrServerFactorySolrServer instance
getSolrServer in interface SolrServerFactoryprotected 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
SAXExceptionpublic void shutdownSolrServer()
public List<String> getCores()
SolrServerFactory
getCores in interface SolrServerFactorypublic void setSolrHome(String solrHome)
public void destroy()
throws Exception
destroy in interface DisposableBeanExceptionpublic org.apache.solr.client.solrj.SolrServer getSolrServer(String core)
SolrServerFactorySolrServer for specific core
getSolrServer in interface SolrServerFactory
|
Spring Data Solr | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||