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