Saturday, 28th April 2012
Follow WikiJava on twitter now. @Wikijava

batBot:Advanced timing

From WikiJava

Jump to: navigation, search

repeat the query, how long to wait between queries, add randomness to the delay

Contents

Manager

User:DonGiulio is the manager for this requirement. Send DonGiulio an email

Feature Groups

random timing

it is possible to send the requests with a random delay

the <timing> element can contain:

  • element <random>milliseconds range of randomness which represents the randomness of the delay between consecutive requests:
    • 0 (zero) = no randomness,
    • same or more as duration = complete randomness, eventually all the requests can be sent in the same moment

skills required:

  • java

Timing configurable via XML

The timing must be configurable in the XML file

There's a <timing> element that could be outside the <request> elements or either inside them.

if the <timing> is outside the <request> elements it means it is the general configuration, to be applied to all the <requests> that do not specify their own timing.

the <timing> element can contain:

  • element <delay>milliseconds which represents the delay between consecutive requests.
  • element <number>number of requests which represents the number of requests to send if present this element overrides the setting of delay.
  • element <duration>milliseconds representing for how long the requests should be sent.

skills required:

  • java


See also