Return-Path: Delivered-To: apmail-qpid-users-archive@www.apache.org Received: (qmail 38480 invoked from network); 19 Oct 2009 17:13:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 19 Oct 2009 17:13:05 -0000 Received: (qmail 21188 invoked by uid 500); 19 Oct 2009 17:13:05 -0000 Delivered-To: apmail-qpid-users-archive@qpid.apache.org Received: (qmail 21169 invoked by uid 500); 19 Oct 2009 17:13:05 -0000 Mailing-List: contact users-help@qpid.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@qpid.apache.org Delivered-To: mailing list users@qpid.apache.org Received: (qmail 21159 invoked by uid 99); 19 Oct 2009 17:13:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Oct 2009 17:13:05 +0000 X-ASF-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of lists+1231964187411-2158936@n2.nabble.com designates 216.139.236.158 as permitted sender) Received: from [216.139.236.158] (HELO kuber.nabble.com) (216.139.236.158) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 19 Oct 2009 17:13:02 +0000 Received: from tervel.nabble.com ([192.168.236.150]) by kuber.nabble.com with esmtp (Exim 4.63) (envelope-from ) id 1Mzvmk-0007g2-Bh for users@qpid.apache.org; Mon, 19 Oct 2009 10:12:42 -0700 Date: Mon, 19 Oct 2009 10:12:42 -0700 (PDT) From: xinfang To: users@qpid.apache.org Message-ID: <1255972362357-3850330.post@n2.nabble.com> Subject: QMF-agent logic. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Nabble-From: pclovec@gmail.com now I review the QMF Agent part code . and try to understand the logic. before I thought I need to write a agent code to implement my require ,my require want to get Queue's byteTotalEnqueues and byteTotalDequeues data.= =20 but i found out in the broker side code , there have a default agent code i= s implement it. I only need to go to understand how to uses agent to get data= =20 , before I uses console can get data but not get sync real time queue info data.=20 ------------- 1 ----------------------------------------- in cpp/src/gen/qmf/org/apache/qpid/broker have these class Queue.cpp EventQueueDeclare.cpp ManagementObject is base object for broker even , Queue is inherit ManagementObject class. and Queue need to implement writeProperties and writeStatistics function . beucase two function will be return data to client. **** I thought these class are integration in broker side. and register the event. when Client invoke the method. but when I go to looking at QMF-agent sample code ,I also found out in example subdirectory have same sample class=20 child.h=20 EventChildCreated.cpp it also inherit ManagermentObject class, it return some objecid count info.= =20 and example.cpp to register the child object and return the data. **** if qmf-agent sample is client side , then Queue.cpp and child.cpp are not integration in broker . only client to implement them. so if I want to write a new agent to return some data. we need to do=20 1. write a class to inherit managementobject. such as Child.h /Queue.h (this step we can define a xml scheme to create the class) 2. write some relationship classes ,such as EventQueueDeclare/EventChildCreate , EventQueueDestroyed and EventQueueDelete.etc... 3. write some Wrapper classes to register and bind to Queue or child class .(this step I didn't understand) 4. write some class get data or write a console to get data.=20 Would that steps are correct? ------------- 2 ----------------------------------------- cpp/src/qpid/agent folder this folder class is agent API for client. in my mind: client uses this class register the class and event, uses give the namespace which class is register.=20 Does console is base on agent.? In my mind I think it=E2=80=99s=20 --=20 View this message in context: http://n2.nabble.com/QMF-agent-logic-tp385033= 0p3850330.html Sent from the Apache Qpid users mailing list archive at Nabble.com. --------------------------------------------------------------------- Apache Qpid - AMQP Messaging Implementation Project: http://qpid.apache.org Use/Interact: mailto:users-subscribe@qpid.apache.org