@UriEndpoint(firstVersion="2.9.0",
scheme="solr,solrs,solrCloud",
title="Solr",
syntax="solr:url",
producerOnly=true,
category={MONITORING,SEARCH})
public class SolrEndpoint
extends org.apache.camel.support.DefaultEndpoint
Constructor and Description |
---|
SolrEndpoint(String endpointUri,
SolrComponent component,
String address) |
Modifier and Type | Method and Description |
---|---|
org.apache.camel.Consumer |
createConsumer(org.apache.camel.Processor processor) |
org.apache.camel.Producer |
createProducer() |
Boolean |
getAllowCompression() |
String |
getCollection() |
SolrComponent |
getComponent() |
Integer |
getConnectionTimeout() |
Integer |
getDefaultMaxConnectionsPerHost() |
Boolean |
getFollowRedirects() |
Integer |
getMaxRetries() |
Integer |
getMaxTotalConnections() |
String |
getPassword() |
String |
getRequestHandler() |
Integer |
getSoTimeout() |
int |
getStreamingQueueSize() |
int |
getStreamingThreadCount() |
String |
getUsername() |
String |
getZkHost() |
boolean |
isAutoCommit() |
protected void |
onProducerShutdown(SolrProducer producer) |
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 committed automatically
|
void |
setCollection(String collection)
Set the collection name which the solrCloud server could use
|
void |
setConnectionTimeout(Integer connectionTimeout)
connectionTimeout on the underlying HttpConnectionManager
|
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 |
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 |
setSoTimeout(Integer soTimeout)
Read timeout on the underlying HttpConnectionManager.
|
void |
setStreamingQueueSize(int streamingQueueSize)
Set the queue size for the StreamingUpdateSolrServer
|
void |
setStreamingThreadCount(int streamingThreadCount)
Set the number of threads for the StreamingUpdateSolrServer
|
void |
setUsername(String username)
Sets username for basic auth plugin enabled servers
|
void |
setZkHost(String zkHost)
Set the ZooKeeper host information which the solrCloud could use, such as "zkhost=localhost:8123".
|
configureConsumer, configureExchange, configurePollingConsumer, configureProperties, createAsyncProducer, createEndpointUri, createExchange, createExchange, createPollingConsumer, doInit, doStart, doStop, equals, getCamelContext, getEndpointKey, getEndpointUri, getExceptionHandler, getExchangePattern, getId, getPollingConsumerBlockTimeout, getPollingConsumerQueueSize, hashCode, isAutowiredEnabled, isBridgeErrorHandler, isLazyStartProducer, isLenientProperties, isPollingConsumerBlockWhenFull, isPollingConsumerCopy, isSingleton, setAutowiredEnabled, setBridgeErrorHandler, setCamelContext, setComponent, setEndpointUri, setEndpointUriIfNotSpecified, setExceptionHandler, setExchangePattern, setLazyStartProducer, setPollingConsumerBlockTimeout, setPollingConsumerBlockWhenFull, setPollingConsumerCopy, setPollingConsumerQueueSize, setProperties, toString
build, doBuild, doFail, doLifecycleChange, doResume, doShutdown, doSuspend, fail, getStatus, init, isBuild, isInit, isNew, isRunAllowed, isShutdown, isStarted, isStarting, isStartingOrStarted, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspend
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public SolrEndpoint(String endpointUri, SolrComponent component, String address) throws Exception
Exception
public void setZkHost(String zkHost)
public String getZkHost()
public void setCollection(String collection)
public String getCollection()
public SolrComponent getComponent()
getComponent
in class org.apache.camel.support.DefaultEndpoint
protected void onProducerShutdown(SolrProducer producer)
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor) throws Exception
Exception
public void setRequestHandler(String requestHandler)
public String getRequestHandler()
public int getStreamingThreadCount()
public void setStreamingThreadCount(int streamingThreadCount)
public int getStreamingQueueSize()
public void setStreamingQueueSize(int streamingQueueSize)
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 getUsername()
public void setUsername(String username)
public String getPassword()
public void setPassword(String password)
public boolean isAutoCommit()
public void setAutoCommit(boolean autoCommit)
Apache Camel