diff options
author | Ted Ross <tross@apache.org> | 2009-10-02 21:43:22 +0000 |
---|---|---|
committer | Ted Ross <tross@apache.org> | 2009-10-02 21:43:22 +0000 |
commit | f81547080ee98c69f6f505a388b504644f7197a8 (patch) | |
tree | fc29f1cba5438cbe2c5a5fba498a1fc9781466bf /cpp/src | |
parent | ee477a65e6ac9532a27cdf589df6d9aba7d97796 (diff) | |
download | qpid-python-f81547080ee98c69f6f505a388b504644f7197a8.tar.gz |
QMF Fixes in Ruby Console:
- AgentProxy object now has broker_bank and agent_bank accessors
- Fixed a bug in the returning og reference values (ObjectId)
- Added package_name accessor to SchemaObjectClass
- Added accessors for agent/broker bank to ObjectId
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@821181 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src')
-rw-r--r-- | cpp/src/qmf/engine/BrokerProxyImpl.cpp | 2 | ||||
-rw-r--r-- | cpp/src/qmf/engine/BrokerProxyImpl.h | 2 | ||||
-rw-r--r-- | cpp/src/qmf/engine/ObjectIdImpl.cpp | 4 |
3 files changed, 8 insertions, 0 deletions
diff --git a/cpp/src/qmf/engine/BrokerProxyImpl.cpp b/cpp/src/qmf/engine/BrokerProxyImpl.cpp index e296254bf8..1a2b3e6555 100644 --- a/cpp/src/qmf/engine/BrokerProxyImpl.cpp +++ b/cpp/src/qmf/engine/BrokerProxyImpl.cpp @@ -730,6 +730,8 @@ bool MethodContext::handleMessage(uint8_t opcode, uint32_t sequence, const strin AgentProxy::AgentProxy(AgentProxyImpl* i) : impl(i) {} AgentProxy::~AgentProxy() { delete impl; } const char* AgentProxy::getLabel() const { return impl->getLabel().c_str(); } +uint32_t AgentProxy::getBrokerBank() const { return impl->getBrokerBank(); } +uint32_t AgentProxy::getAgentBank() const { return impl->getAgentBank(); } BrokerProxy::BrokerProxy(Console& console) : impl(new BrokerProxyImpl(*this, console)) {} BrokerProxy::~BrokerProxy() { delete impl; } diff --git a/cpp/src/qmf/engine/BrokerProxyImpl.h b/cpp/src/qmf/engine/BrokerProxyImpl.h index 738424bce1..798a5fdc76 100644 --- a/cpp/src/qmf/engine/BrokerProxyImpl.h +++ b/cpp/src/qmf/engine/BrokerProxyImpl.h @@ -108,6 +108,8 @@ namespace engine { } ~AgentProxyImpl() {} const std::string& getLabel() const { return label; } + uint32_t getBrokerBank() const { return 1; } + uint32_t getAgentBank() const { return agentBank; } void addSequence(uint32_t seq) { inFlightSequences.insert(seq); } void delSequence(uint32_t seq) { inFlightSequences.erase(seq); } void releaseInFlight(SequenceManager& seqMgr) { diff --git a/cpp/src/qmf/engine/ObjectIdImpl.cpp b/cpp/src/qmf/engine/ObjectIdImpl.cpp index 5b925045bf..b08ae2756c 100644 --- a/cpp/src/qmf/engine/ObjectIdImpl.cpp +++ b/cpp/src/qmf/engine/ObjectIdImpl.cpp @@ -156,6 +156,10 @@ uint32_t ObjectId::getObjectNumHi() const { return impl->getObjectNumHi(); } uint32_t ObjectId::getObjectNumLo() const { return impl->getObjectNumLo(); } bool ObjectId::isDurable() const { return impl->isDurable(); } const char* ObjectId::str() const { return impl->asString().c_str(); } +uint8_t ObjectId::getFlags() const { return impl->getFlags(); } +uint16_t ObjectId::getSequence() const { return impl->getSequence(); } +uint32_t ObjectId::getBrokerBank() const { return impl->getBrokerBank(); } +uint32_t ObjectId::getAgentBank() const { return impl->getAgentBank(); } bool ObjectId::operator==(const ObjectId& other) const { return *impl == *other.impl; } bool ObjectId::operator<(const ObjectId& other) const { return *impl < *other.impl; } bool ObjectId::operator>(const ObjectId& other) const { return *impl > *other.impl; } |