summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/cluster/Connection.h
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2010-06-16 20:32:04 +0000
committerAlan Conway <aconway@apache.org>2010-06-16 20:32:04 +0000
commita6801aa6ac2c6d97b6747ef7bd7d2264be9c58ab (patch)
treed4368c5338c635d2cd7a7c40c576636b18098ed6 /cpp/src/qpid/cluster/Connection.h
parent2273c62236d666ab677d964591f564f81908d6ad (diff)
downloadqpid-python-a6801aa6ac2c6d97b6747ef7bd7d2264be9c58ab.tar.gz
Bug 603835 - cluster_tests.test_management failing.
Clean up connections causing extra connection objects in the mangement agent map. - update connection was not being closed. - connections belonging to members that left the cluster were not fully cleaned up Also fixed test errors making failover_soak fail sporadically. git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@955370 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/Connection.h')
-rw-r--r--cpp/src/qpid/cluster/Connection.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/cpp/src/qpid/cluster/Connection.h b/cpp/src/qpid/cluster/Connection.h
index 70c4d0e2a3..45d832a5ff 100644
--- a/cpp/src/qpid/cluster/Connection.h
+++ b/cpp/src/qpid/cluster/Connection.h
@@ -75,7 +75,8 @@ class Connection :
~Connection();
ConnectionId getId() const { return self; }
- broker::Connection& getBrokerConnection() { return *connection; }
+ broker::Connection* getBrokerConnection() { return connection.get(); }
+ const broker::Connection* getBrokerConnection() const { return connection.get(); }
/** Local connections may be clients or catch-up connections */
bool isLocal() const;
@@ -167,6 +168,7 @@ class Connection :
void announce(const std::string& mgmtId, uint32_t ssf, const std::string& authid,
bool nodict, const std::string& username,
const std::string& initFrames);
+ void close();
void abort();
void deliverClose();
@@ -227,6 +229,7 @@ class Connection :
broker::SessionState& sessionState();
broker::SemanticState& semanticState();
broker::QueuedMessage getUpdateMessage();
+ void closeUpdated();
Cluster& cluster;
ConnectionId self;