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 fcohen
Full name Frank Cohen
Date 2004-10-18 19:19:08 PDT
Message Works for me. -Frank


On Oct 18, 2004, at 6:47 PM, Oliver Bock wrote:

> 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
>
>
---
Frank Cohen, PushToTest, http://www.PushToTest.com, phone: 408 374 7426
Author of "Java Testing and Design: From Unit Tests to Automated Web
Tests"
from Prentice Hall, details at http://thebook.pushtotest.com


--------------------​--------------------​--------------------​---------
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 | 10 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: