Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.scoja.util
Class ExpiringLRUCacheStressTest.User  view ExpiringLRUCacheStressTest.User download ExpiringLRUCacheStressTest.User.java

java.lang.Object
  extended byjava.lang.Thread
      extended byorg.scoja.util.ExpiringLRUCacheStressTest.User
All Implemented Interfaces:
java.lang.Runnable
Enclosing class:
ExpiringLRUCacheStressTest

public static class ExpiringLRUCacheStressTest.User
extends java.lang.Thread


Nested Class Summary
 class ExpiringLRUCacheStressTest.User.KillMe
           
 
Nested classes inherited from class java.lang.Thread
java.lang.Thread.UncaughtExceptionHandler
 
Field Summary
(package private)  int base
           
(package private)  ExpiringLRUCache cache
           
(package private)  int created
           
(package private)  int killed
           
(package private)  int notFoundAccess
           
(package private)  long periodEnd
           
(package private)  int periods
           
(package private)  java.util.Random random
           
(package private)  int range
           
(package private)  long round
           
(package private)  boolean stopRequested
           
(package private)  int totalAccess
           
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ExpiringLRUCacheStressTest.User(ExpiringLRUCache cache, int range, long round)
           
 
Method Summary
private  void access()
           
 void addKilled()
           
 int createdCount()
           
 int getNotFoundAccess()
           
 int getTotalAccess()
           
 int killedCount()
           
 int periodCount()
           
 void run()
          The method of Thread that will be run if there is no Runnable object associated with the Thread.
 void shouldStop()
           
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, 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

cache

final ExpiringLRUCache cache

range

final int range

round

final long round

random

final java.util.Random random

totalAccess

int totalAccess

notFoundAccess

int notFoundAccess

base

int base

periodEnd

long periodEnd

periods

int periods

created

int created

killed

int killed

stopRequested

boolean stopRequested
Constructor Detail

ExpiringLRUCacheStressTest.User

public ExpiringLRUCacheStressTest.User(ExpiringLRUCache cache,
                                       int range,
                                       long round)
Method Detail

shouldStop

public void shouldStop()

getTotalAccess

public int getTotalAccess()

getNotFoundAccess

public int getNotFoundAccess()

periodCount

public int periodCount()

createdCount

public int createdCount()

addKilled

public void addKilled()

killedCount

public int killedCount()

run

public void run()
Description copied from class: java.lang.Thread
The method of Thread that will be run if there is no Runnable object associated with the Thread. Thread's implementation does nothing at all.


access

private void access()