diff options
author | Alan Conway <aconway@apache.org> | 2010-12-15 14:40:01 +0000 |
---|---|---|
committer | Alan Conway <aconway@apache.org> | 2010-12-15 14:40:01 +0000 |
commit | c50499e4c309e43367c2ff4ab478d85f88c3124c (patch) | |
tree | 4a16a98213901f151d0550b9350b38b5bf041c85 /cpp/src/qpid/cluster/Connection.cpp | |
parent | 086fd98a8869bf141a525b30e9c0f33d71b2a655 (diff) | |
download | qpid-python-c50499e4c309e43367c2ff4ab478d85f88c3124c.tar.gz |
Bug 662765 - Management broker ID should be the same for members of a cluster.
Replicate management UUID and name to members of a cluster.
See https://bugzilla.redhat.com/show_bug.cgi?id=662765.
git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@1049566 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'cpp/src/qpid/cluster/Connection.cpp')
-rw-r--r-- | cpp/src/qpid/cluster/Connection.cpp | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/cpp/src/qpid/cluster/Connection.cpp b/cpp/src/qpid/cluster/Connection.cpp index 2a98800484..2797fdcf02 100644 --- a/cpp/src/qpid/cluster/Connection.cpp +++ b/cpp/src/qpid/cluster/Connection.cpp @@ -632,15 +632,23 @@ void Connection::addQueueListener(const std::string& q, uint32_t listener) { // // This is the handler for incoming managementsetup messages. // -void Connection::managementSetupState(uint64_t objectNum, uint16_t bootSequence) +void Connection::managementSetupState( + uint64_t objectNum, uint16_t bootSequence, const framing::Uuid& id, + const std::string& vendor, const std::string& product, const std::string& instance) { - QPID_LOG(debug, "Running managementsetup state handler, new objectnum " - << objectNum << " seq " << bootSequence); + QPID_LOG(debug, cluster << " updated management: object number=" + << objectNum << " boot sequence=" << bootSequence + << " broker-id=" << id + << " vendor=" << vendor + << " product=" << product + << " instance=" << instance); management::ManagementAgent* agent = cluster.getBroker().getManagementAgent(); if (!agent) throw Exception(QPID_MSG("Management schema update but management not enabled.")); agent->setNextObjectId(objectNum); agent->setBootSequence(bootSequence); + agent->setUuid(id); + agent->setName(vendor, product, instance); } }} // Namespace qpid::cluster |