Jagger
 All Classes Namespaces Files Functions Variables Groups Pages
Custom distributors

Distributors main page

To add custom distributor you need to do:

  1. Create class which implements Distributor interface or extends one of classes Implementations of distributors
    public class RandomQueryDistributor<Q, E> extends QueryPoolLoadBalancer<Q, E> {

  2. 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 -->

  3. 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: