summaryrefslogtreecommitdiff
path: root/cpp/src/qpid/cluster/Cluster.h
diff options
context:
space:
mode:
authorAlan Conway <aconway@apache.org>2009-04-29 20:29:53 +0000
committerAlan Conway <aconway@apache.org>2009-04-29 20:29:53 +0000
commitbf70c3a435b5198e48cd83f692796bd47e253df1 (patch)
tree1f67175547e8f847220f9f01ca9993e0b45ff592 /cpp/src/qpid/cluster/Cluster.h
parent0ea393c49936c4647547199859961c4203a25cb3 (diff)
downloadqpid-python-bf70c3a435b5198e48cd83f692796bd47e253df1.tar.gz
Improved & simplified cluster output algorithm.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@769914 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/Cluster.h')
-rw-r--r--cpp/src/qpid/cluster/Cluster.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/cpp/src/qpid/cluster/Cluster.h b/cpp/src/qpid/cluster/Cluster.h
index 8a94fc79dd..bd401f3715 100644
--- a/cpp/src/qpid/cluster/Cluster.h
+++ b/cpp/src/qpid/cluster/Cluster.h
@@ -101,8 +101,7 @@ class Cluster : private Cpg::Handler, public management::Manageable {
void checkQuorum();
- size_t getReadMax() { return readMax; }
- size_t getWriteEstimate() { return writeEstimate; }
+ const ClusterSettings& getSettings() const { return settings; }
void deliverFrame(const EventFrame&);
@@ -192,7 +191,7 @@ class Cluster : private Cpg::Handler, public management::Manageable {
void updateOutDone(Lock&);
// Immutable members set on construction, never changed.
- ClusterSettings settings;
+ const ClusterSettings settings;
broker::Broker& broker;
qmf::org::apache::qpid::cluster::Cluster* mgmtObject; // mgnt owns lifecycle
boost::shared_ptr<sys::Poller> poller;
@@ -200,8 +199,6 @@ class Cluster : private Cpg::Handler, public management::Manageable {
const std::string name;
Url myUrl;
const MemberId self;
- const size_t readMax;
- const size_t writeEstimate;
framing::Uuid clusterId;
NoOpConnectionOutputHandler shadowOut;
qpid::management::ManagementAgent* mAgent;