forked from ringcentral/jagger8
-
Notifications
You must be signed in to change notification settings - Fork 0
Custom query distributors
nmusienko edited this page Mar 13, 2013
·
2 revisions
#Custom query distributors
- Create class which extends class QueryPoolLoadBalancer
package test;
...
public class CustomDistributor<Q, E> extends QueryPoolLoadBalancer<Q, E> {
@Override
public Iterator<Pair<Q, E>> provide() {
...
}
}- Create bean in XML file in one of the subdirectories directory "suite" with this class
<beans:bean id="customDistributor" class="test.CustomDistributor"/>- Create component "query-distributor" with type "query-distributor-ref" and set attribute "ref" to id of bean
<scenario ...>
...
<query-distributor xsi:type="query-distributor-ref" ref="customDistributor"/>
</scenario>