|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wicket.threadtest.tester.Tester
public final class Tester
Constructor Summary | |
---|---|
Tester(Command command,
int numberOfThreads,
boolean multipleSessions)
Construct. |
|
Tester(List<Command> commands,
int numberOfThreads,
boolean multipleSessions)
Construct. |
Method Summary | |
---|---|
String |
getHost()
Gets host. |
int |
getPort()
Gets port. |
static void |
main(String[] args)
Main method for just starting the server |
void |
onDone(CommandRunner runner)
|
void |
onError(CommandRunner runner,
Exception e)
|
void |
run()
Runs the test. |
void |
setHost(String host)
Sets host. |
void |
setPort(int port)
Sets port. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Tester(Command command, int numberOfThreads, boolean multipleSessions)
command
- Command to executenumberOfThreads
- Number of threads to run the commands. Each thread runs all commandsmultipleSessions
- if true, each thread will represent a seperate session. If false, the test behaves
like one client issuing multiple concurrent requestspublic Tester(List<Command> commands, int numberOfThreads, boolean multipleSessions)
commands
- Commands to executenumberOfThreads
- Number of threads to run the commands. Each thread runs all commandsmultipleSessions
- if true, each thread will represent a separate session. If false, the test behaves
like one client issuing multiple concurrent requestsMethod Detail |
---|
public static void main(String[] args)
args
- public String getHost()
public int getPort()
public void onDone(CommandRunner runner)
onDone
in interface CommandRunner.CommandRunnerObserver
public void onError(CommandRunner runner, Exception e)
onError
in interface CommandRunner.CommandRunnerObserver
public void run() throws Exception
Exception
public void setHost(String host)
host
- hostpublic void setPort(int port)
port
- port
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |