[jboss-dev-forums] [Design of JBoss Remoting, Unified Invokers] - Re: Extracting load balancing classes from AS cluster module
bstansberry@jboss.com
do-not-reply at jboss.com
Tue Sep 12 17:08:31 EDT 2006
With the effort underway to consolidate the client side interceptor models (see http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3970879#3970879), need to revisit a bit the LoadBalancePolicy interface.
We'd decided earlier to create a simple base interface with only chooseTarget(FamilyClusterInfo fci) and then to leave a legacy subinterface with a method that took o.j.invocation.Invocation as a param.
If we're going to consolidate to a single interceptor model, this raises a few questions:
1) Will we get rid of the subinterface w/ o.j.invocation.Invocation? (An indirect way of asking whether we'll get rid of the old interceptor model for 5.0, or leave it around for ease of migration.)
2) Will we want a method chooseTarget(FamilyClusterInfo, o.j.aop.joinpoint.Invocation) ? This will provide an API similar to the old detached invoker model that any custom policies that people wrote can adapt to.
3) If yes to #1 and #2, in the base interface or a subinterface?
4) Another possibility Tom and I discussed is to create an abstraction of the data that would be passed in the Invocation and pass that to the LoadBalancePolicy, thus reducing the coupling to the invocation type.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3971120#3971120
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3971120
More information about the jboss-dev-forums
mailing list