org.openware.loadsim.simulation
Class VirtualUser
java.lang.Object
|
+--org.openware.loadsim.simulation.VirtualUser
- All Implemented Interfaces:
- java.lang.Runnable, java.io.Serializable
- public class VirtualUser
- extends java.lang.Object
- implements java.lang.Runnable, java.io.Serializable
The simulator works by creating a list of virtual users each of which,
in turn, have a set of URL's that get submitted to the HTTP server.
This class models that virtual user.
Each virtual user runs in it's own thread. They contain an attribute that
indicates whether they are still alive or not. Basically, being alive means
it still has links to submit to the webserver.
- Author:
- Vincent Sheffer
- See Also:
- Serialized Form
Method Summary |
void |
die()
Causes this thread to die after finishing its current sample. |
void |
init(IResults results,
ILog log,
int numIterations)
|
boolean |
isAlive()
|
void |
run()
Start the virtual user's thread. |
void |
setRamping(boolean value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
VirtualUser
public VirtualUser(Config config,
Sequence seq)
init
public void init(IResults results,
ILog log,
int numIterations)
run
public void run()
- Start the virtual user's thread.
- Specified by:
run
in interface java.lang.Runnable
setRamping
public void setRamping(boolean value)
die
public void die()
- Causes this thread to die after finishing its current sample.
isAlive
public boolean isAlive()
Copyright © 2000, 2001 Openware, Spin Software. All Rights Reserved.