From b2838cde6c363bdd3dae72e54768f9c510afd994 Mon Sep 17 00:00:00 2001 From: Andrew Stitcher Date: Thu, 11 Jun 2009 14:24:05 +0000 Subject: Add flag to broker Connection so that it knows if it is a local or shadow connection git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@783789 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/broker/Connection.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'cpp/src/qpid/broker/Connection.h') diff --git a/cpp/src/qpid/broker/Connection.h b/cpp/src/qpid/broker/Connection.h index df2c36c92e..8040d74a75 100644 --- a/cpp/src/qpid/broker/Connection.h +++ b/cpp/src/qpid/broker/Connection.h @@ -129,6 +129,11 @@ class Connection : public sys::ConnectionInputHandler, void sendClose(); void setSecureConnection(SecureConnection* secured); + /** True if this is a shadow connection in a cluster. */ + bool isShadow() { return shadow; } + /** Called by cluster to mark shadow connections */ + void setShadow() { shadow = true; } + private: typedef boost::ptr_map ChannelMap; typedef std::vector::iterator queue_iterator; @@ -147,6 +152,7 @@ class Connection : public sys::ConnectionInputHandler, boost::intrusive_ptr heartbeatTimer; boost::intrusive_ptr timeoutTimer; ErrorListener* errorListener; + bool shadow; public: qmf::org::apache::qpid::broker::Connection* getMgmtObject() { return mgmtObject; } -- cgit v1.2.1