Membership::Membership(const BrokerInfo& info, HaBroker& b) : haBroker(b), self(info.getSystemId()) { brokers[self] = info; setPrefix(); oldStatus = info.getStatus(); }
void Membership::add(const BrokerInfo& b) { Mutex::ScopedLock l(lock); assert(b.getSystemId() != self); brokers[b.getSystemId()] = b; update(true, l); }
void Membership::add(const BrokerInfo& b) { Mutex::ScopedLock l(lock); brokers[b.getSystemId()] = b; update(l); }
Membership::Membership(const BrokerInfo& info, HaBroker& b) : haBroker(b), self(info.getSystemId()) { brokers[self] = info; }
void Membership::add(const BrokerInfo& b) { brokers[b.getSystemId()] = b; }
void Membership::reset(const BrokerInfo& b) { brokers.clear(); brokers[b.getSystemId()] = b; }