public class JettySolrRunner extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JettySolrRunner.Servlet404
This is a stupid hack to give jetty something to attach to
|
Constructor and Description |
---|
JettySolrRunner(String context,
int port) |
JettySolrRunner(String context,
int port,
String solrConfigFilename) |
Modifier and Type | Method and Description |
---|---|
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.
|
public JettySolrRunner(String context, int port)
public void waitForSolr(String context) throws Exception
Exception
public int getLocalPort()
RuntimeException
- if there is no Connectorpublic static void main(String[] args)