blob: c0c94e3a18faa35d0d262dd75cc4109b1dbc8265 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
#include "TransactionAsyncContext.h"
namespace tests {
namespace storePerftools {
namespace asyncPerf {
TransactionAsyncContext::TransactionAsyncContext(MockTransactionContext* tc,
const qpid::asyncStore::AsyncOperation::opCode op):
qpid::broker::BrokerContext(),
m_tc(tc),
m_op(op)
{
assert(tc != 0);
}
TransactionAsyncContext::~TransactionAsyncContext()
{}
qpid::asyncStore::AsyncOperation::opCode
TransactionAsyncContext::getOpCode() const
{
return m_op;
}
const char*
TransactionAsyncContext::getOpStr() const
{
return qpid::asyncStore::AsyncOperation::getOpStr(m_op);
}
MockTransactionContext*
TransactionAsyncContext::getTransactionContext() const
{
return m_tc;
}
void
TransactionAsyncContext::destroy()
{
delete this;
}
}}} // namespace tests::storePerftools::asyncPerf
|