From 982a0d216f6f7da64c2e614672ecc09a2dcd4d4f Mon Sep 17 00:00:00 2001 From: Ted Ross Date: Fri, 16 Apr 2010 19:03:36 +0000 Subject: Fixed problems with the broker's QMFv2 mode: - app_id is a message property, not an application header - even in v2 mode, the agent must respond to v1 schema requests - missing object_id was added to the periodic data updates - epoch/boot-sequence added to agent information (locate-response, heartbeat) git-svn-id: https://svn.apache.org/repos/asf/qpid/trunk/qpid@935044 13f79535-47bb-0310-9956-ffa450edef68 --- cpp/src/qpid/agent/ManagementAgentImpl.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'cpp/src/qpid/agent') diff --git a/cpp/src/qpid/agent/ManagementAgentImpl.cpp b/cpp/src/qpid/agent/ManagementAgentImpl.cpp index 076a34d1bf..23cd284a2f 100644 --- a/cpp/src/qpid/agent/ManagementAgentImpl.cpp +++ b/cpp/src/qpid/agent/ManagementAgentImpl.cpp @@ -374,6 +374,7 @@ void ManagementAgentImpl::sendHeartbeat() map["_values"] = attrMap; map["_values"].asMap()["timestamp"] = uint64_t(Duration(now())); map["_values"].asMap()["heartbeat_interval"] = interval; + map["_values"].asMap()["epoch"] = bootSequence; MapCodec::encode(map, content); connThreadBody.sendBuffer(content, "", headers, addr_exchange, addr_key); @@ -673,6 +674,7 @@ void ManagementAgentImpl::handleLocateRequest(const string&, const string& cid, map["_values"] = attrMap; map["_values"].asMap()["timestamp"] = uint64_t(Duration(now())); map["_values"].asMap()["heartbeat_interval"] = interval; + map["_values"].asMap()["epoch"] = bootSequence; MapCodec::encode(map, content); connThreadBody.sendBuffer(content, cid, headers, addr_exchange, replyTo); -- cgit v1.2.1