org.apache.camel.component.solr
Class SolrEndpoint

java.lang.Object
  extended by org.apache.camel.support.ServiceSupport
      extended by org.apache.camel.impl.DefaultEndpoint
          extended by 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.


Field Summary
 
Fields inherited from class org.apache.camel.support.ServiceSupport
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
 
Constructor Summary
SolrEndpoint(String endpointUri, SolrComponent component, String address, Map<String,Object> parameters)
           
 
Method Summary
 org.apache.camel.Consumer createConsumer(org.apache.camel.Processor processor)
           
 org.apache.camel.Producer createProducer()
           
static int getIntFromString(String value, int defaultValue)
           
 String getRequestHandler()
           
 org.apache.solr.client.solrj.impl.CommonsHttpSolrServer getSolrServer()
           
 int getStreamingQueueSize()
           
 org.apache.solr.client.solrj.impl.CommonsHttpSolrServer getStreamingSolrServer()
           
 int getStreamingThreadCount()
           
 boolean isSingleton()
           
 void setAllowCompression(boolean allowCompression)
           
 void setConnectionTimeout(int connectionTimeout)
           
 void setDefaultMaxConnectionsPerHost(int defaultMaxConnectionsPerHost)
           
 void setFollowRedirects(boolean followRedirects)
           
 void setMaxRetries(int maxRetries)
           
 void setMaxTotalConnections(int maxTotalConnections)
           
 void setRequestHandler(String requestHandler)
           
 void setSoTimeout(int soTimeout)
           
 void setStreamingQueueSize(int streamingQueueSize)
           
 void setStreamingSolrServer(org.apache.solr.client.solrj.impl.CommonsHttpSolrServer streamingSolrServer)
           
 void setStreamingThreadCount(int streamingThreadCount)
           
 
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 class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.apache.camel.Service
start, stop
 

Constructor Detail

SolrEndpoint

public SolrEndpoint(String endpointUri,
                    SolrComponent component,
                    String address,
                    Map<String,Object> parameters)
             throws Exception
Throws:
Exception
Method Detail

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