diff options
| author | Alan Conway <aconway@apache.org> | 2008-09-18 13:55:30 +0000 |
|---|---|---|
| committer | Alan Conway <aconway@apache.org> | 2008-09-18 13:55:30 +0000 |
| commit | e2b079386b19c34a26bb4a7c67bd002ebb9bdc94 (patch) | |
| tree | c190fa29f5a58530bba7f174ec6f5727c36630ba /cpp/src/qpid/cluster/ClusterMap.h | |
| parent | fcc3335293a77c8e9130ea1836ee55872d6b28f5 (diff) | |
| download | qpid-python-e2b079386b19c34a26bb4a7c67bd002ebb9bdc94.tar.gz | |
Refactor Cluster logic into separate handlers for Joining & Member modes.
git-svn-id: https://svn.apache.org/repos/asf/incubator/qpid/trunk/qpid@696657 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/ClusterMap.h')
| -rw-r--r-- | cpp/src/qpid/cluster/ClusterMap.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cpp/src/qpid/cluster/ClusterMap.h b/cpp/src/qpid/cluster/ClusterMap.h index c626c7688d..b00f818f88 100644 --- a/cpp/src/qpid/cluster/ClusterMap.h +++ b/cpp/src/qpid/cluster/ClusterMap.h @@ -34,8 +34,6 @@ namespace qpid { namespace cluster { -// FIXME aconway 2008-09-15: rename cluster status? - /** * Map of established cluster members and brain-dumps in progress. * A dumper is an established member that is sending catch-up data. @@ -58,8 +56,8 @@ class ClusterMap { /** Convert map contents to a cluster update body. */ framing::ClusterUpdateBody toControl() const; - /** Add a new member. */ - void add(const MemberId& id, const Url& url); + /** Add a new member or dump complete if id == dumper. */ + void ready(const MemberId& id, const Url& url); /** Apply update delivered from clsuter. */ void update(const framing::FieldTable& members, uint64_t dumper); @@ -70,6 +68,7 @@ class ClusterMap { std::vector<Url> memberUrls() const; size_t size() const { return members.size(); } + bool empty() const { return members.empty(); } private: friend std::ostream& operator<<(std::ostream&, const ClusterMap&); |
