From 75e9139d60bc049fabf9b3b779ddd157bb5160bb Mon Sep 17 00:00:00 2001 From: Kim van der Riet Date: Tue, 24 Jul 2012 18:27:54 +0000 Subject: QPID-3858: WIP: Renamed AsyncTransaction to AsyncTransactionalStore; changed some of the broker contexts to more specific classes. git-svn-id: https://svn.apache.org/repos/asf/qpid/branches/asyncstore@1365207 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/asyncStore/AsyncStoreImpl.cpp | 52 +++++++++++++++--------------- 1 file changed, 26 insertions(+), 26 deletions(-) (limited to 'cpp/src/qpid/asyncStore/AsyncStoreImpl.cpp') diff --git a/cpp/src/qpid/asyncStore/AsyncStoreImpl.cpp b/cpp/src/qpid/asyncStore/AsyncStoreImpl.cpp index e8379b95e2..4aeab4c7bf 100644 --- a/cpp/src/qpid/asyncStore/AsyncStoreImpl.cpp +++ b/cpp/src/qpid/asyncStore/AsyncStoreImpl.cpp @@ -35,11 +35,11 @@ #include "qpid/broker/EnqueueHandle.h" #include "qpid/broker/EventHandle.h" #include "qpid/broker/MessageHandle.h" +#include "qpid/broker/QueueAsyncContext.h" #include "qpid/broker/QueueHandle.h" +#include "qpid/broker/TxnAsyncContext.h" #include "qpid/broker/TxnHandle.h" -//#include - namespace qpid { namespace asyncStore { @@ -95,28 +95,28 @@ AsyncStoreImpl::createTxnHandle(const std::string& xid, void AsyncStoreImpl::submitPrepare(qpid::broker::TxnHandle& txnHandle, - boost::shared_ptr brokerCtxt) + boost::shared_ptr TxnCtxt) { - boost::shared_ptr op(new AsyncOpTxnPrepare(txnHandle, brokerCtxt)); - brokerCtxt->setOpStr(op->getOpStr()); + boost::shared_ptr op(new AsyncOpTxnPrepare(txnHandle, TxnCtxt)); + TxnCtxt->setOpStr(op->getOpStr()); m_operations.submit(op); } void AsyncStoreImpl::submitCommit(qpid::broker::TxnHandle& txnHandle, - boost::shared_ptr brokerCtxt) + boost::shared_ptr TxnCtxt) { - boost::shared_ptr op(new AsyncOpTxnCommit(txnHandle, brokerCtxt)); - brokerCtxt->setOpStr(op->getOpStr()); + boost::shared_ptr op(new AsyncOpTxnCommit(txnHandle, TxnCtxt)); + TxnCtxt->setOpStr(op->getOpStr()); m_operations.submit(op); } void AsyncStoreImpl::submitAbort(qpid::broker::TxnHandle& txnHandle, - boost::shared_ptr brokerCtxt) + boost::shared_ptr TxnCtxt) { - boost::shared_ptr op(new AsyncOpTxnAbort(txnHandle, brokerCtxt)); - brokerCtxt->setOpStr(op->getOpStr()); + boost::shared_ptr op(new AsyncOpTxnAbort(txnHandle, TxnCtxt)); + TxnCtxt->setOpStr(op->getOpStr()); m_operations.submit(op); } @@ -178,28 +178,28 @@ AsyncStoreImpl::submitDestroy(qpid::broker::ConfigHandle& cfgHandle, void AsyncStoreImpl::submitCreate(qpid::broker::QueueHandle& queueHandle, const qpid::broker::DataSource* const dataSrc, - boost::shared_ptr brokerCtxt) + boost::shared_ptr QueueCtxt) { - boost::shared_ptr op(new AsyncOpQueueCreate(queueHandle, dataSrc, brokerCtxt)); - brokerCtxt->setOpStr(op->getOpStr()); + boost::shared_ptr op(new AsyncOpQueueCreate(queueHandle, dataSrc, QueueCtxt)); + QueueCtxt->setOpStr(op->getOpStr()); m_operations.submit(op); } void AsyncStoreImpl::submitDestroy(qpid::broker::QueueHandle& queueHandle, - boost::shared_ptr brokerCtxt) + boost::shared_ptr QueueCtxt) { - boost::shared_ptr op(new AsyncOpQueueDestroy(queueHandle, brokerCtxt)); - brokerCtxt->setOpStr(op->getOpStr()); + boost::shared_ptr op(new AsyncOpQueueDestroy(queueHandle, QueueCtxt)); + QueueCtxt->setOpStr(op->getOpStr()); m_operations.submit(op); } void AsyncStoreImpl::submitFlush(qpid::broker::QueueHandle& queueHandle, - boost::shared_ptr brokerCtxt) + boost::shared_ptr QueueCtxt) { - boost::shared_ptr op(new AsyncOpQueueFlush(queueHandle, brokerCtxt)); - brokerCtxt->setOpStr(op->getOpStr()); + boost::shared_ptr op(new AsyncOpQueueFlush(queueHandle, QueueCtxt)); + QueueCtxt->setOpStr(op->getOpStr()); m_operations.submit(op); } @@ -227,20 +227,20 @@ AsyncStoreImpl::submitDestroy(qpid::broker::EventHandle& eventHandle, void AsyncStoreImpl::submitEnqueue(qpid::broker::EnqueueHandle& enqHandle, qpid::broker::TxnHandle& txnHandle, - boost::shared_ptr brokerCtxt) + boost::shared_ptr QueueCtxt) { - boost::shared_ptr op(new AsyncOpMsgEnqueue(enqHandle, txnHandle, brokerCtxt)); - brokerCtxt->setOpStr(op->getOpStr()); + boost::shared_ptr op(new AsyncOpMsgEnqueue(enqHandle, txnHandle, QueueCtxt)); + QueueCtxt->setOpStr(op->getOpStr()); m_operations.submit(op); } void AsyncStoreImpl::submitDequeue(qpid::broker::EnqueueHandle& enqHandle, qpid::broker::TxnHandle& txnHandle, - boost::shared_ptr brokerCtxt) + boost::shared_ptr QueueCtxt) { - boost::shared_ptr op(new AsyncOpMsgDequeue(enqHandle, txnHandle, brokerCtxt)); - brokerCtxt->setOpStr(op->getOpStr()); + boost::shared_ptr op(new AsyncOpMsgDequeue(enqHandle, txnHandle, QueueCtxt)); + QueueCtxt->setOpStr(op->getOpStr()); m_operations.submit(op); } -- cgit v1.2.1