public class MongoDbProducer
extends org.apache.camel.impl.DefaultProducer
| Constructor and Description |
|---|
MongoDbProducer(MongoDbEndpoint endpoint) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doAggregate(org.apache.camel.Exchange exchange)
All headers except collection and database are non available for this
operation.
|
protected void |
doCommand(org.apache.camel.Exchange exchange) |
protected void |
doCount(org.apache.camel.Exchange exchange) |
protected void |
doFindAll(org.apache.camel.Exchange exchange) |
protected void |
doFindById(org.apache.camel.Exchange exchange) |
protected void |
doFindOneByQuery(org.apache.camel.Exchange exchange) |
protected void |
doGetStats(org.apache.camel.Exchange exchange,
MongoDbOperation operation) |
protected void |
doInsert(org.apache.camel.Exchange exchange) |
protected void |
doRemove(org.apache.camel.Exchange exchange) |
protected void |
doSave(org.apache.camel.Exchange exchange) |
protected void |
doUpdate(org.apache.camel.Exchange exchange) |
protected void |
invokeOperation(MongoDbOperation operation,
org.apache.camel.Exchange exchange)
Entry method that selects the appropriate MongoDB operation and executes it
|
void |
process(org.apache.camel.Exchange exchange) |
createExchange, createExchange, createExchange, doStart, doStop, getEndpoint, isSingleton, toStringdoResume, doShutdown, doSuspend, getStatus, getVersion, isRunAllowed, isStarted, isStarting, isStopped, isStopping, isStoppingOrStopped, isSuspended, isSuspending, isSuspendingOrSuspended, resume, shutdown, start, stop, suspendpublic MongoDbProducer(MongoDbEndpoint endpoint)
protected void invokeOperation(MongoDbOperation operation, org.apache.camel.Exchange exchange) throws Exception
operation - exchange - Exceptionprotected void doCommand(org.apache.camel.Exchange exchange)
throws Exception
Exceptionprotected void doGetStats(org.apache.camel.Exchange exchange,
MongoDbOperation operation)
throws Exception
Exceptionprotected void doRemove(org.apache.camel.Exchange exchange)
throws Exception
Exceptionprotected void doUpdate(org.apache.camel.Exchange exchange)
throws Exception
Exceptionprotected void doFindById(org.apache.camel.Exchange exchange)
throws Exception
Exceptionprotected void doInsert(org.apache.camel.Exchange exchange)
throws Exception
Exceptionprotected void doFindAll(org.apache.camel.Exchange exchange)
throws Exception
Exceptionprotected void doFindOneByQuery(org.apache.camel.Exchange exchange)
throws Exception
Exceptionprotected void doCount(org.apache.camel.Exchange exchange)
throws Exception
ExceptionApache Camel