org.apache.wicket.threadtest.tester
Class AbstractGetCommand

java.lang.Object
  extended by org.apache.wicket.threadtest.tester.AbstractCommand
      extended by org.apache.wicket.threadtest.tester.AbstractGetCommand
All Implemented Interfaces:
Command
Direct Known Subclasses:
SimpleGetCommand

public abstract class AbstractGetCommand
extends AbstractCommand


Constructor Summary
AbstractGetCommand(List<String> urls, int iterations)
          Construct.
 
Method Summary
protected abstract  void doGet(org.apache.commons.httpclient.HttpClient client, String url)
          Execute a GET request using the provided url.
 void execute(CommandRunner runner)
          Execute one iteration.
 
Methods inherited from class org.apache.wicket.threadtest.tester.AbstractCommand
getIterations, getUrls
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractGetCommand

public AbstractGetCommand(List<String> urls,
                          int iterations)
Construct.

Parameters:
urls - URLs to visit
iterations - number of executions of the urls
Method Detail

execute

public void execute(CommandRunner runner)
             throws Exception
Description copied from interface: Command
Execute one iteration.

Parameters:
runner - command runner that executes this command
Throws:
Exception
See Also:
Command.execute(CommandRunner)

doGet

protected abstract void doGet(org.apache.commons.httpclient.HttpClient client,
                              String url)
                       throws Exception
Execute a GET request using the provided url.

Parameters:
url - The url to GET
client - the http client
Throws:
Exception


Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.