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