Class LastAccessedThread
- java.lang.Object
-
- java.lang.Thread
-
- edu.uiuc.ncsa.security.core.cache.MyThread
-
- edu.uiuc.ncsa.security.storage.events.LastAccessedThread
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
-
-
Field Summary
Fields Modifier and Type Field Description static String
LOCK_ID
-
Fields inherited from class edu.uiuc.ncsa.security.core.cache.MyThread
cleanupInterval
-
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
-
Constructor Summary
Constructors Constructor Description LastAccessedThread(String name, MyLoggingFacade logger, LastAccessedEventListener lastAccessedEventListener)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
info(String x)
boolean
isDebugOn()
boolean
isStopThread()
Is this thread set to stop?void
run()
void
setDebugOn(boolean debugOn)
void
setStopThread(boolean stopThread)
Sets the flag to stop this thread.protected void
updateStore()
protected void
warn(String x)
-
Methods inherited from class edu.uiuc.ncsa.security.core.cache.MyThread
debug, debug, getAlarms, getCleanupInterval, getNextSleepInterval, isTestMode, setAlarms, setCleanupInterval, setTestMode
-
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
-
-
-
Field Detail
-
LOCK_ID
public static String LOCK_ID
-
-
Constructor Detail
-
LastAccessedThread
public LastAccessedThread(String name, MyLoggingFacade logger, LastAccessedEventListener lastAccessedEventListener)
-
-
Method Detail
-
isDebugOn
public boolean isDebugOn()
-
setDebugOn
public void setDebugOn(boolean debugOn)
-
updateStore
protected void updateStore()
-
isStopThread
public boolean isStopThread()
Description copied from class:MyThread
Is this thread set to stop?- Overrides:
isStopThread
in classMyThread
- Returns:
-
setStopThread
public void setStopThread(boolean stopThread)
Description copied from class:MyThread
Sets the flag to stop this thread. The next time the thread wakes up after this is enabled, the thread will exit. This allows for a clean shutdown of caching.- Overrides:
setStopThread
in classMyThread
-
-