juju.reattore.loadtest.controller
Interface Chooser

All Known Implementing Classes:
RoundRobinChooser

public interface Chooser

A chooser takes a set of URLs and provides them to the controller on request. A chooser could be round robin, random, etc.


Method Summary
 void addTarget(java.net.URL url)
          Adds a target URL to choose from
 java.net.URL getNext()
          Returns the next URL in the sequence.
 

Method Detail

addTarget

public void addTarget(java.net.URL url)
Adds a target URL to choose from

Parameters:
url - A URL that will be served by getNext later.

getNext

public java.net.URL getNext()
Returns the next URL in the sequence.

Returns:
A URL from the pool generated through addTarget


Copyright © 2002-2003 Michael Hope. All Rights Reserved.