|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.solr.client.solrj.embedded.JettySolrRunner
public class JettySolrRunner
Run solr using jetty
| Nested Class Summary | |
|---|---|
static class |
JettySolrRunner.Servlet404
This is a stupid hack to give jetty something to attach to |
| Constructor Summary | |
|---|---|
JettySolrRunner(String context,
int port)
|
|
JettySolrRunner(String context,
int port,
String solrConfigFilename)
|
|
| Method Summary | |
|---|---|
int |
getLocalPort()
Returns the Local Port of the first Connector found for the jetty Server. |
static void |
main(String[] args)
A main class that starts jetty+solr This is useful for debugging |
void |
start()
|
void |
start(boolean waitForSolr)
|
void |
stop()
|
void |
waitForSolr(String context)
Waits until a ping query to the solr server succeeds, retrying every 200 milliseconds up to 2 minutes. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JettySolrRunner(String context,
int port)
public JettySolrRunner(String context,
int port,
String solrConfigFilename)
| Method Detail |
|---|
public void start()
throws Exception
Exception
public void start(boolean waitForSolr)
throws Exception
Exception
public void stop()
throws Exception
Exception
public void waitForSolr(String context)
throws Exception
Exceptionpublic int getLocalPort()
RuntimeException - if there is no Connectorpublic static void main(String[] args)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||