CFEngine API

org.recommender.server
Class Resample

java.lang.Object
  |
  +--java.lang.Thread
        |
        +--org.recommender.server.Resample
All Implemented Interfaces:
java.lang.Runnable

public class Resample
extends java.lang.Thread

This class provides methods to start a thread which is responsible for re-sampling users.

Author:
Olivier Godde

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
Resample(DataManager dtMgr)
          Constructor
 
Method Summary
 void run()
          An infinite loop
static void setIdle(long time)
          Disable this thread for while (static reference allows an external class to put it to sleep)
 
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

Resample

public Resample(DataManager dtMgr)
Constructor

Method Detail

run

public void run()
An infinite loop

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

setIdle

public static void setIdle(long time)
Disable this thread for while (static reference allows an external class to put it to sleep)

Parameters:
time -

CFEngine API

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