summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/cluster/ClusterHandler.h
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2008-09-18 20:18:29 +0000
committerAlan Conway <aconway@apache.org>2008-09-18 20:18:29 +0000
commitb210ae04b88afa38238ca56e474ca60533f2768b (patch)
tree9caa01a04713bcc33a1a3b7cbbb4e84e96232713 /cpp/src/qpid/cluster/ClusterHandler.h
parentaedf627380016ebf210ea88029be8bd338ffc989 (diff)
downloadqpid-python-b210ae04b88afa38238ca56e474ca60533f2768b.tar.gz
Dump shared state to new cluster members.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@696788 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/ClusterHandler.h')
-rw-r--r--cpp/src/qpid/cluster/ClusterHandler.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/cpp/src/qpid/cluster/ClusterHandler.h b/cpp/src/qpid/cluster/ClusterHandler.h
index 5da5cf5b75..95106de016 100644
--- a/cpp/src/qpid/cluster/ClusterHandler.h
+++ b/cpp/src/qpid/cluster/ClusterHandler.h
@@ -24,6 +24,7 @@
#include "Cpg.h"
#include "types.h"
+#include <boost/intrusive_ptr.hpp>
namespace qpid {
@@ -31,6 +32,7 @@ namespace framing { class AMQFrame; }
namespace cluster {
+class Connection;
class Cluster;
class Event;
@@ -44,6 +46,8 @@ class ClusterHandler
ClusterHandler(Cluster& c);
virtual ~ClusterHandler();
+ bool invoke(const MemberId&, framing::AMQFrame& f);
+
virtual void update(const MemberId&, const framing::FieldTable& members, uint64_t dumping) = 0;
virtual void dumpRequest(const MemberId&, const std::string& url) = 0;
virtual void ready(const MemberId&, const std::string& url) = 0;
@@ -54,7 +58,7 @@ class ClusterHandler
cpg_address *left, int nLeft,
cpg_address *joined, int nJoined) = 0;
- bool invoke(const MemberId&, framing::AMQFrame& f);
+ virtual void insert(const boost::intrusive_ptr<Connection>& c) = 0;
protected:
Cluster& cluster;