diff options
author | Ted Ross <tross@apache.org> | 2009-10-15 21:38:07 +0000 |
---|---|---|
committer | Ted Ross <tross@apache.org> | 2009-10-15 21:38:07 +0000 |
commit | 6416726d452570462d559632f6d25161c7da31fe (patch) | |
tree | 40e33563d51a892220037c9856a1fafce7a09339 /cpp/src/qmf/engine/QueryImpl.h | |
parent | eee3bc498140a3e3e6c2b18e34c579d9c1b7738a (diff) | |
download | qpid-python-6416726d452570462d559632f6d25161c7da31fe.tar.gz |
Bug fix: Console sent get-requests (by objectId) to all agents, not just the agent
identified in the objectId.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@825672 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qmf/engine/QueryImpl.h')
-rw-r--r-- | cpp/src/qmf/engine/QueryImpl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/cpp/src/qmf/engine/QueryImpl.h b/cpp/src/qmf/engine/QueryImpl.h index 2c64c6739c..8ebe0d932f 100644 --- a/cpp/src/qmf/engine/QueryImpl.h +++ b/cpp/src/qmf/engine/QueryImpl.h @@ -85,6 +85,8 @@ namespace engine { bool getDecreasing() const { return orderDecreasing; } void encode(qpid::framing::Buffer& buffer) const; + bool singleAgent() const { return oid.get() != 0; } + uint32_t agentBank() const { return singleAgent() ? oid->getAgentBank() : 0; } std::string packageName; std::string className; |