|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.performance.ClientThread
org.apache.commons.performance.TesterClientThread
public class TesterClientThread
Test ClientThread
| Field Summary |
|---|
| Fields inherited from class org.apache.commons.performance.ClientThread |
|---|
logger, PEAK_LOAD, RAMPING_DOWN, RAMPING_UP, randomData, stats, TROUGH_LOAD |
| Constructor Summary | |
|---|---|
TesterClientThread(long iterations,
long minDelay,
long maxDelay,
double sigma,
String delayType,
long rampPeriod,
long peakPeriod,
long troughPeriod,
String cycleType,
String rampType,
Logger logger,
org.apache.commons.performance.Statistics stats,
long minServiceDelay,
long maxServiceDelay,
double meanServiceDelay,
double sigmaServiceDelay,
String serviceDelayType)
|
|
| Method Summary | |
|---|---|
protected void |
cleanUp()
Executed in finally block of iteration try-catch |
void |
execute()
Simulate server latency using service latency parameters |
protected void |
finish()
Executed once after the run finishes |
long |
getSetups()
|
long |
getTearDowns()
|
protected void |
init()
Executed once at the beginning of the run |
boolean |
isFinalized()
|
boolean |
isHurling()
|
boolean |
isInitialized()
|
void |
setHurling(boolean hurling)
|
protected void |
setUp()
Executed at the beginning of each iteration |
| Methods inherited from class org.apache.commons.performance.ClientThread |
|---|
adjustState, computeCyclicDelay, getCycleState, getCycleType, getDelayType, getIterations, getLastMean, getMaxDelay, getMinDelay, getNumErrors, getNumMisses, getPeakPeriod, getPeriodStart, getRampPeriod, getRampType, getSigma, getStartTime, getStats, getTroughPeriod, nextDelay, run, setCycleState, setDelayType, setLastMean, setMaxDelay, setMinDelay, setNumErrors, setNumMisses, setPeakPeriod, setPeriodStart, setRampPeriod, setRampType, setSigma, setStartTime, setTroughPeriod |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TesterClientThread(long iterations,
long minDelay,
long maxDelay,
double sigma,
String delayType,
long rampPeriod,
long peakPeriod,
long troughPeriod,
String cycleType,
String rampType,
Logger logger,
org.apache.commons.performance.Statistics stats,
long minServiceDelay,
long maxServiceDelay,
double meanServiceDelay,
double sigmaServiceDelay,
String serviceDelayType)
| Method Detail |
|---|
public boolean isHurling()
public void setHurling(boolean hurling)
protected void init()
throws Exception
init in class org.apache.commons.performance.ClientThreadException
protected void setUp()
throws Exception
setUp in class org.apache.commons.performance.ClientThreadException
protected void cleanUp()
throws Exception
cleanUp in class org.apache.commons.performance.ClientThreadException
protected void finish()
throws Exception
finish in class org.apache.commons.performance.ClientThreadExceptionpublic boolean isInitialized()
public boolean isFinalized()
public long getSetups()
public long getTearDowns()
public void execute()
throws Exception
execute in class org.apache.commons.performance.ClientThreadException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||