|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Thread | +--javawebparts.misc.RecordedRequestPlayer.RunnerThread
This is an inner class that is the thread which is spawned to run through the recorded requests.
Field Summary | |
private int |
id
The ID of this thread. |
private int |
numThreads
The total number of threads running, for display purposss only. |
private int |
reps
Number of repetitions this thread should perform. |
private int |
repsCount
Count of the number of repetitions this thread has performed so far. |
private java.util.ArrayList |
requests
The collection of requests this thread will run through. |
private int |
responseCode
The response code retrieved from the last request made. |
private java.lang.String |
responseMessage
The response message retrieved from the last request made. |
Fields inherited from class java.lang.Thread |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Constructor Summary | |
RecordedRequestPlayer.RunnerThread()
|
Method Summary | |
private void |
log(java.lang.StringBuffer sb)
For every request that is made, a message is constructed with the results and some status information. |
void |
run()
Main thread work method. |
private void |
sendRequest(java.lang.String theURL,
java.lang.String method,
java.util.HashMap params)
This method is called to send a given request. |
void |
setID(int inID)
Mutator for the ID of this thread. |
void |
setNumThreads(int inNumThreads)
Mutator for the total number of threads running. |
void |
setReps(int inReps)
Mutator for number of repetitions this thread will perform. |
void |
setRequests(java.util.ArrayList inRequests)
Mutator for the array of requests this thread will run through. |
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 int reps
private int repsCount
private int id
private java.util.ArrayList requests
private int responseCode
private java.lang.String responseMessage
private int numThreads
Constructor Detail |
public RecordedRequestPlayer.RunnerThread()
Method Detail |
public void setReps(int inReps)
inReps
- The new value to set.public void setID(int inID)
inID
- The new value to set.public void setRequests(java.util.ArrayList inRequests)
inRequests
- The new value to set.public void setNumThreads(int inNumThreads)
inNumThreads
- The new value to set.public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
private void sendRequest(java.lang.String theURL, java.lang.String method, java.util.HashMap params)
theURL
- The URL the request is made to.method
- The method used (GET or POST only).params
- The map of parameters of the request..private void log(java.lang.StringBuffer sb)
sb
- The message to be logged.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |