juju.reattore.loadtest.controller.impl
Class RoundRobinChooser

java.lang.Object
  |
  +--juju.reattore.loadtest.controller.impl.RoundRobinChooser
All Implemented Interfaces:
Chooser

public class RoundRobinChooser
extends java.lang.Object
implements Chooser

Round robin URL chooser.


Constructor Summary
RoundRobinChooser()
           
 
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RoundRobinChooser

public RoundRobinChooser()
Method Detail

addTarget

public void addTarget(java.net.URL url)
Description copied from interface: Chooser
Adds a target URL to choose from

Specified by:
addTarget in interface Chooser
Parameters:
url - A URL that will be served by getNext later.
See Also:
Chooser

getNext

public java.net.URL getNext()
Description copied from interface: Chooser
Returns the next URL in the sequence.

Specified by:
getNext in interface Chooser
Returns:
A URL from the pool generated through addTarget
See Also:
Chooser


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