Distributors main page
To add custom distributor you need to do:
- Create class which implements Distributor interface or extends one of classes Implementations of distributors
public class RandomQueryDistributor<Q, E> extends QueryPoolLoadBalancer<Q, E> {
- Create bean in XML file in the directory "suite/distributor/" with this class
<!-- begin: following section is used for docu generation - distributor bean -->
<beans:bean id="randomQueryDistributor" class="${package}.distributor.RandomQueryDistributor"/>
<!-- end: following section is used for docu generation - distributor bean -->
- Refer this class in your scenario-query-pool with element query-distributor
<!-- begin: following section is used for docu generation - distributor usage -->
<test-description id="jaggerRandomPageTest" parent="jaggerPageTest" calibration="true">
<scenario xsi:type="scenario-query-pool" parent="jaggerPageScenario">
<query-distributor xsi:type="query-distributor-ref" ref="randomQueryDistributor"/>
</scenario>
</test-description>
<!-- end: following section is used for docu generation - distributor usage -->
Note:
- full examples of the code are available in maven archetype-examples
- instead of ${package} write the name of your package