httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harrie Hazewinkel <har...@lisanza.net>
Subject Re: [PATCH] mgmt_get_vars hook
Date Thu, 14 Jun 2001 14:48:23 GMT
Greg Stein wrote:
> 
> On Tue, Jun 12, 2001 at 08:14:20PM -0700, Harrie Hazewinkel wrote:
> >...
> > If I under stand the implication of a RUNALL it will run all functions
> > registered in the HOOK.
> 
> yes.
> 
> >...
> > Would a simple mechanism as a optional function not be better.
> > The module that has management data to provide registers this
> > function in a generic form and function registration
> > dedicated for the management data.
> 
> An optional function doesn't give a mgmt module a way to collect data from
> 10 different areas of the server. The hook *does*

Theoretically you are correct. This is a single way for a management 
module to retrieve data. Unfortenately, it does not address the point
where the management module needs to know what information is in the
data retrieve. WIth other words (and as I said before) the management
module needs to have detailed knowledge of the retrieve data anyway.

You could argue that there is a descriptive string with the data.
But in practise this does not help, since I do not believe someone
today will implement a management knowledge which how how to understand
the data. This will result in that asking for 10 specific things or
asking for everything and only processing 10 specific things is not
difference in any kind.

> 
> And in a sense, the hook system *is* registering a function. A module wants
> to provide data, so it registers with the hook.

Harrie
-- 
address: Covalent Technologies, 645 Howard St, San Francisco, CA - 94105
phone: +1-415-536-5221                               fax:+1-415-536-5210
personal website: http://www.lisanza.net/

Mime
View raw message