diff options
| author | Alan Conway <aconway@apache.org> | 2010-02-02 15:46:46 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2010-02-02 15:46:46 +0000 |
| commit | 21e39f778986321e7477f26b24f949fb798b58b4 (patch) | |
| tree | 3fd300494489e36754515a7e990463ecf544d103 /cpp/src/qpid/cluster/Cluster.h | |
| parent | 2574655d79a515c161ba09a3db725906572747fb (diff) | |
| download | qpid-python-21e39f778986321e7477f26b24f949fb798b58b4.tar.gz | |
Cluster: debug snapshots of queue depth at broker join, help find inconsistencies.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@905674 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/Cluster.h')
| -rw-r--r-- | cpp/src/qpid/cluster/Cluster.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/cpp/src/qpid/cluster/Cluster.h b/cpp/src/qpid/cluster/Cluster.h index 977c873e29..ffb870606a 100644 --- a/cpp/src/qpid/cluster/Cluster.h +++ b/cpp/src/qpid/cluster/Cluster.h @@ -120,6 +120,9 @@ class Cluster : private Cpg::Handler, public management::Manageable { bool isElder() const; + // For debugging only. Can only be called in deliver thread. + void debugSnapshot(const char*, Connection* =0); + private: typedef sys::Monitor::ScopedLock Lock; @@ -178,10 +181,8 @@ class Cluster : private Cpg::Handler, public management::Manageable { void memberUpdate(Lock&); void setClusterId(const framing::Uuid&, Lock&); void erase(const ConnectionId&, Lock&); - void initMapCompleted(Lock&); - - + void becomeElder(Lock&); // == Called in CPG dispatch thread void deliver( // CPG deliver callback. @@ -202,8 +203,6 @@ class Cluster : private Cpg::Handler, public management::Manageable { const struct cpg_address */*joined*/, int /*nJoined*/ ); - void becomeElder(); - // == Called in management threads. virtual qpid::management::ManagementObject* GetManagementObject() const; virtual management::Manageable::status_t ManagementMethod (uint32_t methodId, management::Args& args, std::string& text); |
