summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/broker/PreviewConnection.cpp
diff options
context:
space:
mode:
authorGordon Sim <gsim@apache.org>2008-03-26 12:14:18 +0000
committerGordon Sim <gsim@apache.org>2008-03-26 12:14:18 +0000
commit9222ac0989bffebe53706255314fa4c577d2b6d8 (patch)
tree7b71d235c5c67fbe9c6d1e1c496194d52ce42102 /cpp/src/qpid/broker/PreviewConnection.cpp
parent7cc09e96c680aa54c9d988844604f4fa7328c770 (diff)
downloadqpid-python-9222ac0989bffebe53706255314fa4c577d2b6d8.tar.gz
Re-enable the establishment of inter-broker links.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@641281 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/broker/PreviewConnection.cpp')
-rw-r--r--cpp/src/qpid/broker/PreviewConnection.cpp11
1 files changed, 3 insertions, 8 deletions
diff --git a/cpp/src/qpid/broker/PreviewConnection.cpp b/cpp/src/qpid/broker/PreviewConnection.cpp
index 5a541b5624..f5a629248c 100644
--- a/cpp/src/qpid/broker/PreviewConnection.cpp
+++ b/cpp/src/qpid/broker/PreviewConnection.cpp
@@ -85,17 +85,12 @@ public:
};
-PreviewConnection::PreviewConnection(ConnectionOutputHandler* out_, Broker& broker_, const std::string& mgmtId_) :
+PreviewConnection::PreviewConnection(ConnectionOutputHandler* out_, Broker& broker_, const std::string& mgmtId_, bool isLink) :
ConnectionState(out_, broker_),
- adapter(*this),
+ adapter(*this, isLink),
mgmtClosing(0),
mgmtId(mgmtId_)
{
- initMgmt();
-}
-
-void PreviewConnection::initMgmt(bool asLink)
-{
Manageable* parent = broker.GetVhostObject ();
if (parent != 0)
@@ -104,7 +99,7 @@ void PreviewConnection::initMgmt(bool asLink)
if (agent.get () != 0)
{
- if (asLink) {
+ if (isLink) {
mgmtWrapper = std::auto_ptr<MgmtWrapper>(new MgmtLink(this, parent, agent, mgmtId));
} else {
mgmtWrapper = std::auto_ptr<MgmtWrapper>(new MgmtClient(this, parent, agent, mgmtId));