CFEngine API

org.recommender.server
Class CacheUpdate

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

public class CacheUpdate
extends java.lang.Thread

This class starts a thread which can update the cache while the server is running.

Author:
Olivier Godde

Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
CacheUpdate(DataManager dtMgr)
          Constructor
 
Method Summary
 void run()
          An infinite loop,get blocked into this function (in the cache Vector monitor) until the cache limit exeeds
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

CacheUpdate

public CacheUpdate(DataManager dtMgr)
Constructor

Method Detail

run

public void run()
An infinite loop,get blocked into this function (in the cache Vector monitor) until the cache limit exeeds

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