public class LuceneQueryProducer extends DefaultProducer
log
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
LuceneQueryProducer(Endpoint endpoint,
LuceneConfiguration config) |
Modifier and Type | Method and Description |
---|---|
LuceneConfiguration |
getConfig() |
void |
process(Exchange exchange)
Processes the message exchange
|
void |
setConfig(LuceneConfiguration config) |
void |
start()
Starts the service
|
void |
stop()
Stops the service
|
createExchange, createExchange, createExchange, doStart, doStop, getEndpoint, isSingleton, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, suspend
public LuceneQueryProducer(Endpoint endpoint, LuceneConfiguration config) throws Exception
Exception
public void start() throws Exception
Service
start
in interface Service
start
in class ServiceSupport
Exception
- is thrown if starting failedpublic void stop() throws Exception
Service
stop
in interface Service
stop
in class ServiceSupport
Exception
- is thrown if stopping failedpublic void process(Exchange exchange) throws Exception
Processor
exchange
- the message exchangeException
- if an internal processing error has occurred.public LuceneConfiguration getConfig()
public void setConfig(LuceneConfiguration config)
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.