public class SolrServerConfigurationImpl extends BaseServerConfigurationImpl implements SolrServerConfiguration
;; Solr server configuration [SolrServer] ;; context path for solr war ; contextPath = "/solr" ;; solr server inet address to bind to. Only specify custom value here, if you ;; want to bind to specific ip addresses / hostnames only. By default, server ;; will listen to all interfaces. ; host = "0.0.0.0" ;; Server port ; port = 8983 ;; path to solr.war ; warPath = "./webapps/solr.war" ;; URL to solr master, required by solr slave for connecting to solr master for replication. ; masterUrl = "http://localhost:8983/solr/" ;; configure this process as solr slave. ; slave = false ;; enable request logger ; requestLoggerEnabled = true ;; requestlog configuration file ; requestLogConfigFilename = "logback-solr-access.xml"
Modifier and Type | Class and Description |
---|---|
static class |
SolrServerConfigurationImpl.ConfigurationProperty |
Modifier and Type | Field and Description |
---|---|
private static java.lang.String |
SOLRSERVER_CONTEXTPATH_DEFAULT |
private static java.lang.String |
SOLRSERVER_MASTERURL_DEFAULT |
private static int |
SOLRSERVER_PORT_DEFAULT |
private static java.lang.String |
SOLRSERVER_REQUESTLOGCONFIGFILENAME_DEFAULT |
private static boolean |
SOLRSERVER_SLAVE_DEFAULT |
private static java.lang.String |
SOLRSERVER_WARPATH_DEFAULT |
config
Constructor and Description |
---|
SolrServerConfigurationImpl(org.apache.commons.configuration.Configuration config) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContextPath() |
protected java.lang.String |
getHost() |
java.lang.String |
getMasterUrl() |
int |
getPort() |
protected java.lang.String |
getRequestLogConfigFilenameDefault() |
java.lang.String |
getResourceBase() |
java.lang.String |
getWarPath() |
boolean |
isRequestLoggerEnabled() |
private boolean |
isSlave() |
private void |
setMasterSlaveSystemProperties() |
getDirectoriesListed, getGracefullShutdownInMillis, getInetSocketAddress, getPathSpec, getRequestLogConfigFilename, getSendDateHeader, getStopAtShutdown, getURI
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDirectoriesListed, getGracefullShutdownInMillis, getInetSocketAddress, getPathSpec, getRequestLogConfigFilename, getSendDateHeader, getStopAtShutdown, getURI
private static final java.lang.String SOLRSERVER_CONTEXTPATH_DEFAULT
private static final int SOLRSERVER_PORT_DEFAULT
private static final java.lang.String SOLRSERVER_WARPATH_DEFAULT
private static final java.lang.String SOLRSERVER_MASTERURL_DEFAULT
private static final boolean SOLRSERVER_SLAVE_DEFAULT
private static final java.lang.String SOLRSERVER_REQUESTLOGCONFIGFILENAME_DEFAULT
@Inject public SolrServerConfigurationImpl(org.apache.commons.configuration.Configuration config)
protected java.lang.String getRequestLogConfigFilenameDefault()
getRequestLogConfigFilenameDefault
in class BaseServerConfigurationImpl
private void setMasterSlaveSystemProperties()
private boolean isSlave()
protected java.lang.String getHost()
getHost
in class BaseServerConfigurationImpl
public int getPort()
getPort
in interface ServerConfiguration
public java.lang.String getContextPath()
getContextPath
in interface ServerConfiguration
public java.lang.String getWarPath()
getWarPath
in interface SolrServerConfiguration
public java.lang.String getMasterUrl()
getMasterUrl
in interface SolrServerConfiguration
public boolean isRequestLoggerEnabled()
isRequestLoggerEnabled
in interface ServerConfiguration
isRequestLoggerEnabled
in class BaseServerConfigurationImpl
public java.lang.String getResourceBase()
getResourceBase
in interface ServerConfiguration