juju.reattore.loadtest.controller.impl
Class BaseController

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

public class BaseController
extends java.lang.Object
implements Controller

Base implementation of a controller.


Constructor Summary
BaseController(Chooser chooser, ClientSocketReactor reactor)
          Create a new controller.
 
Method Summary
 void go(double perSec, double runTime)
          Run the test.
 void go(int num, double interval)
          Run the test for the given number of times.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BaseController

public BaseController(Chooser chooser,
                      ClientSocketReactor reactor)
Create a new controller.

Parameters:
chooser - The chooser to pull URLs from
reactor - The reactor to attach test clients to.
Method Detail

go

public void go(double perSec,
               double runTime)
Description copied from interface: Controller
Run the test.

Specified by:
go in interface Controller
Parameters:
perSec - The spawn rate.
runTime - The total time to run for.
See Also:
Controller

go

public void go(int num,
               double interval)
Description copied from interface: Controller
Run the test for the given number of times.

Specified by:
go in interface Controller
Parameters:
num - Number of times to run.
interval - Time in seconds between runs.
See Also:
Controller


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