@UriEndpoint(scheme="solr", title="Solr", syntax="solr:url", producerOnly=true, label="monitoring,search") public class SolrEndpoint extends DefaultEndpoint
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
SolrEndpoint(String endpointUri,
SolrComponent component,
String address) |
Modifier and Type | Method and Description |
---|---|
Consumer |
createConsumer(Processor processor)
Creates a new Event
Driven Consumer which consumes messages from the endpoint using the
given processor
|
Producer |
createProducer()
Creates a new producer which is used send messages into the endpoint
|
Boolean |
getAllowCompression() |
String |
getCollection() |
SolrComponent |
getComponent()
Returns the component that created this endpoint.
|
Integer |
getConnectionTimeout() |
Integer |
getDefaultMaxConnectionsPerHost() |
Boolean |
getFollowRedirects() |
Integer |
getMaxRetries() |
Integer |
getMaxTotalConnections() |
String |
getRequestHandler() |
Integer |
getSoTimeout() |
int |
getStreamingQueueSize() |
int |
getStreamingThreadCount() |
String |
getZkHost() |
boolean |
isSingleton()
Whether this class supports being singleton or not.
|
protected void |
onProducerShutdown(SolrProducer producer) |
void |
setAllowCompression(Boolean allowCompression) |
void |
setCollection(String collection) |
void |
setConnectionTimeout(Integer connectionTimeout) |
void |
setDefaultMaxConnectionsPerHost(Integer defaultMaxConnectionsPerHost) |
void |
setFollowRedirects(Boolean followRedirects) |
void |
setMaxRetries(Integer maxRetries) |
void |
setMaxTotalConnections(Integer maxTotalConnections) |
void |
setRequestHandler(String requestHandler) |
void |
setSoTimeout(Integer soTimeout) |
void |
setStreamingQueueSize(int streamingQueueSize) |
void |
setStreamingThreadCount(int streamingThreadCount) |
void |
setZkHost(String zkHost) |
configureConsumer, configurePollingConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, getPollingConsumerQueueSize, hashCode, isLenientProperties, isPollingConsumerBlockWhenFull, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setPollingConsumerBlockWhenFull, setPollingConsumerQueueSize, setProperties, setSynchronous, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
public SolrEndpoint(String endpointUri, SolrComponent component, String address) throws Exception
Exception
public void setZkHost(String zkHost) throws UnsupportedEncodingException
UnsupportedEncodingException
public String getZkHost()
public void setCollection(String collection)
public String getCollection()
public SolrComponent getComponent()
DefaultEndpoint
getComponent
in class DefaultEndpoint
public Producer createProducer() throws Exception
Endpoint
Exception
- can be thrownprotected void onProducerShutdown(SolrProducer producer)
public Consumer createConsumer(Processor processor) throws Exception
Endpoint
processor
- the given processorException
- can be thrownpublic boolean isSingleton()
IsSingleton
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)
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.