Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 0AB21200BD4 for ; Thu, 1 Dec 2016 19:35:18 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 0959A160B0B; Thu, 1 Dec 2016 18:35:18 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 529DA160B05 for ; Thu, 1 Dec 2016 19:35:17 +0100 (CET) Received: (qmail 78170 invoked by uid 500); 1 Dec 2016 18:35:16 -0000 Mailing-List: contact dev-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: dev@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@httpd.apache.org Received: (qmail 78160 invoked by uid 99); 1 Dec 2016 18:35:16 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Dec 2016 18:35:16 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 7FFA7CBB16 for ; Thu, 1 Dec 2016 18:35:15 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 0.652 X-Spam-Level: X-Spam-Status: No, score=0.652 tagged_above=-999 required=6.31 tests=[RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_NEUTRAL=0.652, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id OEuvtYNzZWRG for ; Thu, 1 Dec 2016 18:35:13 +0000 (UTC) Received: from resqmta-ch2-07v.sys.comcast.net (resqmta-ch2-07v.sys.comcast.net [69.252.207.39]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 49B845F58F for ; Thu, 1 Dec 2016 18:35:13 +0000 (UTC) Received: from resomta-ch2-19v.sys.comcast.net ([69.252.207.115]) by resqmta-ch2-07v.sys.comcast.net with SMTP id CW9rcbNkVtIqRCWASceCWg; Thu, 01 Dec 2016 18:33:12 +0000 Received: from [192.168.199.10] ([69.251.90.98]) by resomta-ch2-19v.sys.comcast.net with SMTP id CWARcIYsshLzqCWARc9aLB; Thu, 01 Dec 2016 18:33:12 +0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 9.3 \(3124\)) Subject: Re: JSON for mod_status From: Jim Jagielski In-Reply-To: Date: Thu, 1 Dec 2016 13:33:11 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: <30A04E20-B8B3-428C-98AC-011203591A89@jaguNET.com> References: <128EB450-7EF2-44CD-9D0A-9B1AA913AC2F@jaguNET.com> <1480531092.4019.27.camel@mimir.webthing.com> <73D2DF78-864E-40E2-B20E-8348060763BF@jaguNET.com> To: dev@httpd.apache.org X-Mailer: Apple Mail (2.3124) X-CMAE-Envelope: MS4wfKM25TDNKTaFH/zsO1/Qiv/ZfFsvvgZOLw/9LtKz+1lQfcH9ra4pSVx1GiLu8r0NG0Y32YWeFAgBf+IjwsiQzJ+K1aoyYOqxauDQu/xewaWXP4It1g9u DVh9seUOYCLSOEdZnR0ajrz4S3Ty04Z8XsE4mcmMDQGcolRMyM0C/9yT archived-at: Thu, 01 Dec 2016 18:35:18 -0000 > On Dec 1, 2016, at 12:53 PM, William A Rowe Jr = wrote: >=20 >=20 > Finally the query fn in mod_bmx_status performs the callback indicated > through its invocation to unspool the data in presentation format, = which > lives back in mod_bmx and behaves identically for every bmx extension. > Adding the properties by type takes all of the onus off of each = extension > to know how to represent them once stored. E.g. our query_hook = function > can be as simple as; > /* create the bean */ > bmx_bean_create(&bmx_status_bean, bmx_status_objectname, r->pool); >=20 > bmx_bean_prop_add(bmx_status_bean, > bmx_property_string_create("ServerName", > ap_get_server_name(r), > r->pool)); print_bean_fn(r, = bmx_status_bean); >=20 >=20 OK, this is the point I have the question about. =46rom what I can see, mod_bmx_status creates bmx_status_bean, adds stuff to it, and then prints it out. But how does it get access to, for example, the beans created and populated in mod_bmx_vhost? I understand that if you KNOW what beans you are looking for, you can query them via mod_bmx, but how do you know what beans have been added. Right now, for example, we have a simple hook that mod_socache_redis (for example) hooks into and once mod_status is done, it loops through all registered hooks. But I don't see any similar type of functionality in mod_bmx_status which allows mod_bmx_status to reproduce the full status information that mod_status currently does. So yeah, other modules create their beans. Fine. But how do those beans get "registered" in mod_bmx_status so that they can actually be displayed?=