We already have such an interface called LoadbalanceAlgorithm. Round robin
algorithm is implemented against this interface.

How is adding another interface going to help? Please do explain.

Thanks

Best Regards,
Hiranya

On Fri, Dec 19, 2008 at 3:06 PM, Senaka Fernando <[email protected]>wrote:

> Hi Hiranya,
>
> just a suggestion, instead of passing a type Object, and since your
> introduction is to introduce a new algorithm, what about an "Algorithm"
> Object (or may be an interface)?
>
> Thanks,
> Senaka
>
>
> On Fri, Dec 19, 2008 at 2:00 PM, Hiranya Jayathilaka <[email protected]
> > wrote:
>
>> Hi Devs,
>>
>> Currently Synapse uses a class called AlgorithmContext to pass various
>> parameters to the load balance algorithm implementations.  At the moment it
>> can be used to pass the endpoint index values and the configuration context
>> objects. This works fine with the round robin load balance algorithm which
>> is the only load balance algorithm in Synapse at the moment. However when
>> developing more advanced load balance algorithm implementations we might
>> want to pass several other parameters using the AlgorithmContext.
>>
>> In order to fulfill this requirement I would like to suggest adding a new
>> field (of type Object) to the AlgorithmContext class along with the
>> necessary getter-setter methods.
>>
>> This addition does not change the existing functionality at all. What do
>> you folks think?
>>
>> Thanks
>>
>> Best Regards,
>> Hiranya
>>
>
>

Reply via email to