public class MongoDbProducer extends DefaultProducer
log
shutdown, shuttingdown, started, starting, stopped, stopping, suspended, suspending
Constructor and Description |
---|
MongoDbProducer(MongoDbEndpoint endpoint) |
Modifier and Type | Method and Description |
---|---|
protected void |
doAggregate(Exchange exchange)
All headers except collection and database are non available for this
operation.
|
protected void |
doCommand(Exchange exchange) |
protected void |
doCount(Exchange exchange) |
protected void |
doFindAll(Exchange exchange) |
protected void |
doFindById(Exchange exchange) |
protected void |
doFindOneByQuery(Exchange exchange) |
protected void |
doGetStats(Exchange exchange,
MongoDbOperation operation) |
protected void |
doInsert(Exchange exchange) |
protected void |
doRemove(Exchange exchange) |
protected void |
doSave(Exchange exchange) |
protected void |
doUpdate(Exchange exchange) |
protected void |
invokeOperation(MongoDbOperation operation,
Exchange exchange)
Entry method that selects the appropriate MongoDB operation and executes it
|
void |
process(Exchange exchange)
Processes the message exchange
|
createExchange, createExchange, createExchange, doStart, doStop, getEndpoint, isSingleton, toString
doResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, resume, shutdown, start, stop, suspend
public MongoDbProducer(MongoDbEndpoint endpoint)
public void process(Exchange exchange) throws Exception
Processor
exchange
- the message exchangeException
- if an internal processing error has occurred.protected void invokeOperation(MongoDbOperation operation, Exchange exchange) throws Exception
operation
- exchange
- Exception
protected void doGetStats(Exchange exchange, MongoDbOperation operation) throws Exception
Exception
protected void doFindOneByQuery(Exchange exchange) throws Exception
Exception
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.