org.apache.camel.component.lucene
Class LuceneIndexProducer

java.lang.Object
  extended by org.apache.camel.impl.ServiceSupport
      extended by org.apache.camel.impl.DefaultProducer
          extended by org.apache.camel.component.lucene.LuceneIndexProducer
All Implemented Interfaces:
IsSingleton, Processor, Producer, Service, ShutdownableService

public class LuceneIndexProducer
extends DefaultProducer


Field Summary
 
Fields inherited from class org.apache.camel.impl.DefaultProducer
log
 
Constructor Summary
LuceneIndexProducer(Endpoint endpoint, LuceneConfiguration config, LuceneIndexer indexer)
           
 
Method Summary
 LuceneConfiguration getConfig()
           
 LuceneIndexer getIndexer()
           
 void process(Exchange exchange)
          Processes the message exchange
 void setConfig(LuceneConfiguration config)
           
 void setIndexer(LuceneIndexer indexer)
           
 void start()
          Starts the service
 void stop()
          Stops the service
 
Methods inherited from class org.apache.camel.impl.DefaultProducer
createExchange, createExchange, createExchange, doStart, doStop, getEndpoint, isSingleton, toString
 
Methods inherited from class org.apache.camel.impl.ServiceSupport
addChildService, doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isSuspended, isSuspending, removeChildService, resume, shutdown, start, suspend
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

LuceneIndexProducer

public LuceneIndexProducer(Endpoint endpoint,
                           LuceneConfiguration config,
                           LuceneIndexer indexer)
                    throws Exception
Throws:
Exception
Method Detail

start

public void start()
           throws Exception
Description copied from interface: Service
Starts the service

Specified by:
start in interface Service
Overrides:
start in class ServiceSupport
Throws:
Exception - is thrown if starting failed

stop

public void stop()
          throws Exception
Description copied from interface: Service
Stops the service

Specified by:
stop in interface Service
Overrides:
stop in class ServiceSupport
Throws:
Exception - is thrown if stopping failed

process

public void process(Exchange exchange)
             throws Exception
Description copied from interface: Processor
Processes the message exchange

Parameters:
exchange - the message exchange
Throws:
Exception - if an internal processing error has occurred.

getConfig

public LuceneConfiguration getConfig()

setConfig

public void setConfig(LuceneConfiguration config)

getIndexer

public LuceneIndexer getIndexer()

setIndexer

public void setIndexer(LuceneIndexer indexer)


Apache CAMEL