org.apache.camel.component.solr
Class SolrEndpoint
java.lang.Object
org.apache.camel.support.ServiceSupport
org.apache.camel.impl.DefaultEndpoint
org.apache.camel.component.solr.SolrEndpoint
- All Implemented Interfaces:
- org.apache.camel.CamelContextAware, org.apache.camel.Endpoint, org.apache.camel.IsSingleton, org.apache.camel.Service, org.apache.camel.ShutdownableService, org.apache.camel.spi.HasId, org.apache.camel.StatefulService, org.apache.camel.SuspendableService
public class SolrEndpoint
- extends org.apache.camel.impl.DefaultEndpoint
Represents a Solr endpoint.
Fields inherited from class org.apache.camel.support.ServiceSupport |
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending |
Methods inherited from class org.apache.camel.impl.DefaultEndpoint |
configureConsumer, configureProperties, createEndpointConfiguration, createEndpointUri, createExchange, createExchange, createExchange, createPollingConsumer, doStart, doStop, equals, getCamelContext, getComponent, getConsumerProperties, getEndpointConfiguration, getEndpointKey, getEndpointUri, getExchangePattern, getId, hashCode, isLenientProperties, isSynchronous, setCamelContext, setConsumerProperties, setEndpointConfiguration, setEndpointUri, setEndpointUriIfNotSpecified, setExchangePattern, setSynchronous, toString |
Methods inherited from class org.apache.camel.support.ServiceSupport |
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, resume, shutdown, start, stop, suspend |
Methods inherited from interface org.apache.camel.Service |
start, stop |
SolrEndpoint
public SolrEndpoint(String endpointUri,
SolrComponent component,
String address,
Map<String,Object> parameters)
throws Exception
- Throws:
Exception
getIntFromString
public static int getIntFromString(String value,
int defaultValue)
createProducer
public org.apache.camel.Producer createProducer()
throws Exception
- Throws:
Exception
createConsumer
public org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
throws Exception
- Throws:
Exception
isSingleton
public boolean isSingleton()
getSolrServer
public org.apache.solr.client.solrj.impl.CommonsHttpSolrServer getSolrServer()
getStreamingSolrServer
public org.apache.solr.client.solrj.impl.CommonsHttpSolrServer getStreamingSolrServer()
setStreamingSolrServer
public void setStreamingSolrServer(org.apache.solr.client.solrj.impl.CommonsHttpSolrServer streamingSolrServer)
setMaxRetries
public void setMaxRetries(int maxRetries)
setSoTimeout
public void setSoTimeout(int soTimeout)
setConnectionTimeout
public void setConnectionTimeout(int connectionTimeout)
setDefaultMaxConnectionsPerHost
public void setDefaultMaxConnectionsPerHost(int defaultMaxConnectionsPerHost)
setMaxTotalConnections
public void setMaxTotalConnections(int maxTotalConnections)
setFollowRedirects
public void setFollowRedirects(boolean followRedirects)
setAllowCompression
public void setAllowCompression(boolean allowCompression)
setRequestHandler
public void setRequestHandler(String requestHandler)
getRequestHandler
public String getRequestHandler()
getStreamingThreadCount
public int getStreamingThreadCount()
setStreamingThreadCount
public void setStreamingThreadCount(int streamingThreadCount)
getStreamingQueueSize
public int getStreamingQueueSize()
setStreamingQueueSize
public void setStreamingQueueSize(int streamingQueueSize)
Apache CAMEL