CFEngine API

org.recommender.test
Class RandomTopNThread

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.recommender.test.TesterThread
              |
              +--org.recommender.test.RandomTopNThread
All Implemented Interfaces:
java.lang.Runnable

public class RandomTopNThread
extends TesterThread

Thread class that will actually hit the recommender server with only recommendation requests.


Field Summary
 
Fields inherited from class org.recommender.test.TesterThread
cfengine, count, maxUserid, minUserid, threadName
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
RandomTopNThread(CFEngine cfengine, java.lang.String threadName, int minUserid, int maxUserid, int count)
           
 
Method Summary
 void run()
          Main method for this thread.
 
Methods inherited from class org.recommender.test.TesterThread
fatalError
 
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
 

Constructor Detail

RandomTopNThread

public RandomTopNThread(CFEngine cfengine,
                        java.lang.String threadName,
                        int minUserid,
                        int maxUserid,
                        int count)
Method Detail

run

public void run()
Main method for this thread. This will grab count recommendations for users between minUserid and maxUserid, picking a random userid each time.

Specified by:
run in interface java.lang.Runnable
Overrides:
run in class java.lang.Thread

CFEngine API

Copyright © 2003 - Oregon State University www.orst.edu