Login | Register
My pages Projects Community openCollabNet

Discussions > dev > Re: [maxq-dev] IAgent - pluggable HTTP agents

maxq
Discussion topic

Back to topic list

Re: [maxq-dev] IAgent - pluggable HTTP agents

Author oliverbock
Full name Oliver Bock
Date 2004-10-18 18:47:04 PDT
Message On 19/10/2004, at 11:29, Frank Cohen wrote:
>> What is the advantage of this more complicated approach? Why should
>> the class factory for IAgents need to know about proxies? The point
>> of the Config.java class is that it provides configuration to the
>> other classes. What purpose does an extra layer serve?
>
> It's not a big point on my list, it's just that I would like to have
> the extra flexibility to make a method call, rather than having to
> mess with the config file (manually) and then restart.

Here is how I understand Config:

1. Config loads its base configuration from maxq.properties in its
static initialisation.

2. Whoever is invoking MaxQ can override bits of its configuration by
calling the Config.setXxxxx() functions. Examples:
    a. When running from the command line, Main.java calls setPort() if
it sees "--port" on the command line.
    b. When we make it work again, the Configuration dialog will also
call setXxxx() functions.
    c. If invoking MaxQ directly from its .jar file (as I think you do),
you can call the setXxxx() functions to override configuration
dynamically.

3. When MaxQ runs, its classes read their configuration from the Config
class.

So I think perhaps you can get what you want by adding a
setProxySettings() function to the Config class. This keeps all
configuration in one place and allows you to change proxy configuration
dynamically, without complicating the IAgent implementations.

Does this work for you?


    Oliver


--------------------​--------------------​--------------------​---------
To unsubscribe, e-mail: dev-unsubscribe at maxq dot tigris dot org
For additional commands, e-mail: dev-help at maxq dot tigris dot org

« Previous message in topic | 9 of 12 | Next message in topic »

Messages

Show all messages in topic

[maxq-dev] IAgent - pluggable HTTP agents oliverbock Oliver Bock 2004-10-18 01:14:06 PDT
     Re: [maxq-dev] IAgent - pluggable HTTP agents fcohen Frank Cohen 2004-10-18 09:41:39 PDT
         Re: [maxq-dev] IAgent - pluggable HTTP agents oliverbock Oliver Bock 2004-10-18 15:00:14 PDT
             Re: [maxq-dev] IAgent - pluggable HTTP agents fcohen Frank Cohen 2004-10-18 16:19:00 PDT
                 Re: [maxq-dev] IAgent - pluggable HTTP agents oliverbock Oliver Bock 2004-10-18 16:33:03 PDT
                     Re: [maxq-dev] IAgent - pluggable HTTP agents fcohen Frank Cohen 2004-10-18 16:40:42 PDT
                         Re: [maxq-dev] IAgent - pluggable HTTP agents oliverbock Oliver Bock 2004-10-18 16:46:26 PDT
                             Re: [maxq-dev] IAgent - pluggable HTTP agents fcohen Frank Cohen 2004-10-18 18:29:00 PDT
                                 Re: [maxq-dev] IAgent - pluggable HTTP agents oliverbock Oliver Bock 2004-10-18 18:47:04 PDT
                                     Re: [maxq-dev] IAgent - pluggable HTTP agents fcohen Frank Cohen 2004-10-18 19:19:08 PDT
     Re: [maxq-dev] IAgent - pluggable HTTP agents hdara at primavera dot com hdara at primavera dot com 2004-10-18 11:02:51 PDT
         Re: [maxq-dev] IAgent - pluggable HTTP agents oliverbock Oliver Bock 2004-10-18 15:19:16 PDT
Messages per page: