|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.lang.Thread
|
+--org.jwarp.service.cache.test.CacheTest.AccessThread
Thread simulating the access to a cache.
| Field Summary | |
(package private) Cache |
cache
The cache to be accessed |
(package private) int |
filledItems
The total number of items refilled to the cache. |
(package private) int |
itemCount
The item count |
(package private) java.util.Hashtable |
items
The items to be accessed. |
(package private) int |
queriedItems
The total number of item queried. |
(package private) long |
timeLimit
The time limit of the accesses. |
| Fields inherited from class java.lang.Thread |
inheritableThreadLocals, MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY, threadLocals |
| Constructor Summary | |
(package private) |
CacheTest.AccessThread(Cache cache,
java.util.Hashtable items,
long timeLimit)
Constructs a new access thread. |
| Method Summary | |
void |
printStats(java.io.PrintStream pw)
Prints out the access statistics to the printwriter object pased. |
void |
run()
Run the test. |
| Methods inherited from class java.lang.Thread |
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
java.util.Hashtable items
Cache cache
int itemCount
long timeLimit
int queriedItems
int filledItems
| Constructor Detail |
CacheTest.AccessThread(Cache cache,
java.util.Hashtable items,
long timeLimit)
cache - The cache to be accessed.items - The items to be accessed.timeLimit - How long the cache should be accessed.| Method Detail |
public void run()
run in class java.lang.Threadpublic void printStats(java.io.PrintStream pw)
pw - The target print writer
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||