org.jboss.portal.test.cms.stress
Class Client

java.lang.Object
  extended by org.jboss.portal.test.cms.stress.Client
All Implemented Interfaces:
java.lang.Runnable

public class Client
extends java.lang.Object
implements java.lang.Runnable


Nested Class Summary
static class Client.Result
           
 
Field Summary
protected  NodeFactory factory
           
protected  int id
           
protected  org.apache.log4j.Logger log
           
protected  int loops
           
protected  java.util.List results
           
protected  Command[] scenario
           
protected  long waitTimeBetweenScenariosMillis
           
 
Constructor Summary
Client(int id, int loops, Command[] scenario, long waitTimeBetweenScenariosMillis, NodeFactory factory)
           
 
Method Summary
 java.util.List getResults()
           
protected  void play()
           
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

id

protected int id

loops

protected int loops

scenario

protected Command[] scenario

results

protected java.util.List results

waitTimeBetweenScenariosMillis

protected long waitTimeBetweenScenariosMillis

factory

protected NodeFactory factory

log

protected org.apache.log4j.Logger log
Constructor Detail

Client

public Client(int id,
              int loops,
              Command[] scenario,
              long waitTimeBetweenScenariosMillis,
              NodeFactory factory)
Method Detail

getResults

public java.util.List getResults()

run

public void run()
Specified by:
run in interface java.lang.Runnable

play

protected void play()