Modifier and Type | Class and Description |
---|---|
static class |
SolrConfiguration.SolrScheme |
Constructor and Description |
---|
SolrConfiguration(SolrConfiguration.SolrScheme solrScheme,
String url,
String zkChroot) |
Modifier and Type | Method and Description |
---|---|
SolrConfiguration |
deepCopy() |
Boolean |
getAllowCompression() |
String |
getCollection() |
Integer |
getConnectionTimeout() |
Integer |
getDefaultMaxConnectionsPerHost() |
Boolean |
getFollowRedirects() |
org.apache.http.client.HttpClient |
getHttpClient() |
Integer |
getMaxRetries() |
Integer |
getMaxTotalConnections() |
String |
getPassword() |
String |
getRequestHandler() |
org.apache.solr.client.solrj.SolrClient |
getSolrClient() |
SolrEndpoint |
getSolrEndpoint() |
SolrConfiguration.SolrScheme |
getSolrScheme() |
Integer |
getSoTimeout() |
int |
getStreamingQueueSize() |
int |
getStreamingThreadCount() |
String |
getUrl() |
boolean |
getUseConcurrentUpdateSolrClient() |
String |
getUsername() |
String |
getZkChroot() |
String |
getZkHost() |
boolean |
isAutoCommit() |
static SolrConfiguration |
newInstance(String endpointUri,
String remaining) |
void |
setAllowCompression(Boolean allowCompression)
Server side must support gzip or deflate for this to have any effect
|
void |
setAutoCommit(boolean autoCommit)
If true, each producer operation will be automatically followed by a commit
|
void |
setCollection(String collection)
Set the default collection for SolrCloud
|
void |
setConnectionTimeout(Integer connectionTimeout)
Sets the connection timeout on the SolrClient
|
void |
setDefaultMaxConnectionsPerHost(Integer defaultMaxConnectionsPerHost)
maxConnectionsPerHost on the underlying HttpConnectionManager
|
void |
setFollowRedirects(Boolean followRedirects)
Indicates whether redirects are used to get to the Solr server
|
void |
setHttpClient(org.apache.http.client.HttpClient httpClient)
Sets the http client to be used by the solrClient.
|
void |
setMaxRetries(Integer maxRetries)
Maximum number of retries to attempt in the event of transient errors
|
void |
setMaxTotalConnections(Integer maxTotalConnections)
maxTotalConnection on the underlying HttpConnectionManager
|
void |
setPassword(String password)
Sets password for basic auth plugin enabled servers
|
void |
setRequestHandler(String requestHandler)
Set the request handler to be used
|
void |
setSolrClient(org.apache.solr.client.solrj.SolrClient solrClient)
Uses the provided solr client to connect to solr.
|
void |
setSolrScheme(SolrConfiguration.SolrScheme solrScheme) |
void |
setSoTimeout(Integer soTimeout)
Sets the socket timeout on the SolrClient
|
void |
setStreamingQueueSize(int streamingQueueSize)
Sets the queue size for the ConcurrentUpdateSolrClient
|
void |
setStreamingThreadCount(int streamingThreadCount)
Sets the number of threads for the ConcurrentUpdateSolrClient
|
void |
setUsername(String username)
Sets username for basic auth plugin enabled servers
|
void |
setZkChroot(String zkChroot)
Set the chroot of the zookeeper connection (include the leading slash; e.g.
|
void |
setZkHost(String zkHost)
Set the ZooKeeper host(s) urls which the CloudSolrClient uses, e.g.
|
public SolrConfiguration(SolrConfiguration.SolrScheme solrScheme, String url, String zkChroot)
public static SolrConfiguration newInstance(String endpointUri, String remaining)
public SolrConfiguration.SolrScheme getSolrScheme()
public void setSolrScheme(SolrConfiguration.SolrScheme solrScheme)
public String getUrl()
public int getStreamingQueueSize()
public void setStreamingQueueSize(int streamingQueueSize)
public int getStreamingThreadCount()
public void setStreamingThreadCount(int streamingThreadCount)
public Integer getMaxRetries()
public void setMaxRetries(Integer maxRetries)
public Integer getSoTimeout()
public void setSoTimeout(Integer soTimeout)
public Integer getConnectionTimeout()
public void setConnectionTimeout(Integer connectionTimeout)
public Integer getDefaultMaxConnectionsPerHost()
public void setDefaultMaxConnectionsPerHost(Integer defaultMaxConnectionsPerHost)
public Integer getMaxTotalConnections()
public void setMaxTotalConnections(Integer maxTotalConnections)
public Boolean getFollowRedirects()
public void setFollowRedirects(Boolean followRedirects)
public Boolean getAllowCompression()
public void setAllowCompression(Boolean allowCompression)
public String getZkHost()
public void setZkHost(String zkHost)
public String getZkChroot()
public void setZkChroot(String zkChroot)
public String getCollection()
public void setCollection(String collection)
public String getRequestHandler()
public void setRequestHandler(String requestHandler)
public String getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public boolean isAutoCommit()
public void setAutoCommit(boolean autoCommit)
public org.apache.solr.client.solrj.SolrClient getSolrClient()
public void setSolrClient(org.apache.solr.client.solrj.SolrClient solrClient)
public org.apache.http.client.HttpClient getHttpClient()
public void setHttpClient(org.apache.http.client.HttpClient httpClient)
public boolean getUseConcurrentUpdateSolrClient()
public SolrEndpoint getSolrEndpoint()
public SolrConfiguration deepCopy()
Apache Camel