public class JettySolrRunner extends Object
Modifier and Type | Class and Description |
---|---|
static class |
JettySolrRunner.DebugFilter |
static class |
JettySolrRunner.Servlet404
This is a stupid hack to give jetty something to attach to
|
Constructor and Description |
---|
JettySolrRunner(String solrHome,
String context,
int port) |
JettySolrRunner(String solrHome,
String context,
int port,
String solrConfigFilename,
String schemaFileName) |
JettySolrRunner(String solrHome,
String context,
int port,
String solrConfigFilename,
String schemaFileName,
boolean stopAtShutdown) |
JettySolrRunner(String solrHome,
String context,
int port,
String solrConfigFilename,
String schemaFileName,
boolean stopAtShutdown,
SortedMap<org.eclipse.jetty.servlet.ServletHolder,String> extraServlets)
Constructor taking an ordered list of additional (servlet holder -> path spec) mappings
to add to the servlet context
|
JettySolrRunner(String solrHome,
String context,
int port,
String solrConfigFilename,
String schemaFileName,
boolean stopAtShutdown,
SortedMap<org.eclipse.jetty.servlet.ServletHolder,String> extraServlets,
SSLConfig sslConfig) |
JettySolrRunner(String solrHome,
String context,
int port,
String solrConfigFilename,
String schemaFileName,
boolean stopAtShutdown,
SortedMap<org.eclipse.jetty.servlet.ServletHolder,String> extraServlets,
SSLConfig sslConfig,
SortedMap<Class,String> extraRequestFilters)
Constructor taking an ordered list of additional (filter holder -> path spec) mappings.
|
Modifier and Type | Method and Description |
---|---|
URL |
getBaseUrl()
Returns a base URL consisting of the protocal, host, and port for a
Connector in use by the Jetty Server contained in this runner.
|
JettySolrRunner.DebugFilter |
getDebugFilter() |
org.eclipse.jetty.servlet.FilterHolder |
getDispatchFilter() |
int |
getLocalPort()
Returns the Local Port of the jetty Server.
|
String |
getSolrHome() |
boolean |
isRunning() |
boolean |
isStopped() |
static void |
main(String[] args)
A main class that starts jetty+solr This is useful for debugging
|
void |
setCoreNodeName(String coreNodeName) |
void |
setDataDir(String dataDir) |
void |
setProxyPort(int proxyPort)
Sets the port of a local socket proxy that sits infront of this server; if set
then all client traffic will flow through the proxy, giving us the ability to
simulate network partitions very easily.
|
void |
setShards(String shardList) |
void |
setUlogDir(String ulogDir) |
void |
start() |
void |
start(boolean waitForSolr) |
void |
stop() |
public JettySolrRunner(String solrHome, String context, int port, String solrConfigFilename, String schemaFileName)
public JettySolrRunner(String solrHome, String context, int port, String solrConfigFilename, String schemaFileName, boolean stopAtShutdown)
public JettySolrRunner(String solrHome, String context, int port, String solrConfigFilename, String schemaFileName, boolean stopAtShutdown, SortedMap<org.eclipse.jetty.servlet.ServletHolder,String> extraServlets)
public JettySolrRunner(String solrHome, String context, int port, String solrConfigFilename, String schemaFileName, boolean stopAtShutdown, SortedMap<org.eclipse.jetty.servlet.ServletHolder,String> extraServlets, SSLConfig sslConfig)
public JettySolrRunner(String solrHome, String context, int port, String solrConfigFilename, String schemaFileName, boolean stopAtShutdown, SortedMap<org.eclipse.jetty.servlet.ServletHolder,String> extraServlets, SSLConfig sslConfig, SortedMap<Class,String> extraRequestFilters)
public org.eclipse.jetty.servlet.FilterHolder getDispatchFilter()
public boolean isRunning()
public boolean isStopped()
public int getLocalPort()
RuntimeException
- if there is no Connectorpublic void setProxyPort(int proxyPort)
public URL getBaseUrl()
public JettySolrRunner.DebugFilter getDebugFilter()
public static void main(String[] args)
public void setShards(String shardList)
public void setDataDir(String dataDir)
public void setUlogDir(String ulogDir)
public void setCoreNodeName(String coreNodeName)
public String getSolrHome()
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.