org.apache.camel.component.lucene
Class LuceneIndexProducer
java.lang.Object
org.apache.camel.impl.ServiceSupport
org.apache.camel.impl.DefaultProducer
org.apache.camel.component.lucene.LuceneIndexProducer
- All Implemented Interfaces:
- IsSingleton, Processor, Producer, Service, ShutdownableService
public class LuceneIndexProducer
- extends DefaultProducer
| 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 |
LuceneIndexProducer
public LuceneIndexProducer(Endpoint endpoint,
LuceneConfiguration config,
LuceneIndexer indexer)
throws Exception
- Throws:
Exception
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