org.rutil.loadtest
Class LoadGenerator
java.lang.Object
org.rutil.loadtest.LoadGenerator
- Direct Known Subclasses:
- RequestBoundLoadGenerator, ThreadBoundLoadGenerator
public abstract class LoadGenerator
- extends java.lang.Object
A skeleton load generator that notifies the statshandler on start and finish.
- Author:
- mohan
- See Also:
TestRunner,
StatsHandler
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
durationInSecs
protected long durationInSecs
name
protected java.lang.String name
testRunner
protected TestRunner testRunner
statsHandler
protected StatsHandler statsHandler
LoadGenerator
protected LoadGenerator()
LoadGenerator
public LoadGenerator(java.lang.String name,
TestRunner testRunner)
getName
public java.lang.String getName()
getTestRunner
public TestRunner getTestRunner()
isEnabled
public boolean isEnabled()
setEnabled
public void setEnabled(boolean enabled)
getDurationInSecs
public long getDurationInSecs()
setDurationInSecs
public void setDurationInSecs(long durationInSecs)
getStatsHandler
public StatsHandler getStatsHandler()
setStatsHandler
public void setStatsHandler(StatsHandler statsHandler)
statsHandler
protected StatsHandler statsHandler()
start
public Stats start()
doStart
protected abstract Stats doStart()