diff options
| author | Ted Ross <tross@apache.org> | 2008-06-02 16:01:51 +0000 |
|---|---|---|
| committer | Ted Ross <tross@apache.org> | 2008-06-02 16:01:51 +0000 |
| commit | 40c8b6f844ce64fc4245e5f91e6b1eaea2fc9e94 (patch) | |
| tree | 80438fbfb8739e9189fdad70d8271ae2ca8d26f4 /cpp/src/qpid/broker/LinkRegistry.cpp | |
| parent | e1c0b830b67e68be71e65ef18657e746ed6b971f (diff) | |
| download | qpid-python-40c8b6f844ce64fc4245e5f91e6b1eaea2fc9e94.tar.gz | |
QPID-1113 Management cleanup and performance enhancements
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@662470 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/LinkRegistry.cpp')
| -rw-r--r-- | cpp/src/qpid/broker/LinkRegistry.cpp | 30 |
1 files changed, 20 insertions, 10 deletions
diff --git a/cpp/src/qpid/broker/LinkRegistry.cpp b/cpp/src/qpid/broker/LinkRegistry.cpp index 455cc8452e..0703c276cf 100644 --- a/cpp/src/qpid/broker/LinkRegistry.cpp +++ b/cpp/src/qpid/broker/LinkRegistry.cpp @@ -87,8 +87,8 @@ pair<Bridge::shared_ptr, bool> LinkRegistry::declare(std::string& host, std::string& src, std::string& dest, std::string& key, - bool is_queue, - bool is_local, + bool isQueue, + bool isLocal, std::string& tag, std::string& excludes) { @@ -110,14 +110,14 @@ pair<Bridge::shared_ptr, bool> LinkRegistry::declare(std::string& host, management::ArgsLinkBridge args; Bridge::shared_ptr bridge; - args.i_durable = durable; - args.i_src = src; - args.i_dest = dest; - args.i_key = key; - args.i_src_is_queue = is_queue; - args.i_src_is_local = is_local; - args.i_tag = tag; - args.i_excludes = excludes; + args.i_durable = durable; + args.i_src = src; + args.i_dest = dest; + args.i_key = key; + args.i_srcIsQueue = isQueue; + args.i_srcIsLocal = isLocal; + args.i_tag = tag; + args.i_excludes = excludes; bridge = Bridge::shared_ptr (new Bridge (l->second.get(), l->second->nextChannel(), @@ -237,4 +237,14 @@ std::string LinkRegistry::getAuthCredentials(const std::string& key) return result; } +std::string LinkRegistry::getAuthIdentity(const std::string& key) +{ + Mutex::ScopedLock locker(lock); + LinkMap::iterator l = links.find(key); + if (l == links.end()) + return string(); + + return l->second->getUsername(); +} + |
