|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.objectweb.cjdbc.requestplayer.MonitoringThread
Displays the number of requests processed at a given time period.
Field Summary | |
private Stats |
deleteStats
Number of delete requests. |
private Stats |
insertStats
Number of insert requests. |
private boolean |
killed
true if this thread has been killed. |
private Stats |
selectStats
Number of read requests. |
private long |
timeInMs
Time to wait between 2 outputs in milleseconds. |
private Stats |
unknownStats
Number of unknown requests. |
private Stats |
updateStats
Number of update requests. |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
MonitoringThread(ClientEmulator father,
long timeInMs)
Creates a new MonitoringThread . |
Method Summary | |
boolean |
isKilled()
Returns true if this thread has been killed. |
void |
run()
|
void |
setKilled(boolean killed)
Used to stop the execution of this thread. |
Methods inherited from class java.lang.Thread |
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, sleep, sleep, start, stop, stop, suspend, toString, yield |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
private Stats selectStats
private Stats unknownStats
private Stats updateStats
private Stats insertStats
private Stats deleteStats
private long timeInMs
private boolean killed
true
if this thread has been killed.
Constructor Detail |
public MonitoringThread(ClientEmulator father, long timeInMs)
MonitoringThread
.
father
- the client emulator.timeInMs
- the time to wait between 2 outputs in milleseconds.Method Detail |
public void run()
Runnable.run()
public boolean isKilled()
true
if this thread has been killed.
boolean
public void setKilled(boolean killed)
killed
- boolean
.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |