public class LateralCacheMonitor extends Thread
Thread.State, Thread.UncaughtExceptionHandler
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
LateralCacheMonitor(LateralTCPCacheFactory factory)
Constructor for the LateralCacheMonitor object
|
Modifier and Type | Method and Description |
---|---|
void |
addCache(LateralCacheNoWait<?,?> cache)
Add a cache to be monitored
|
protected static void |
forceShortIdlePeriod(long idlePeriod)
Allows close classes, ie testers to set the idle period to something testable.
|
void |
notifyError()
Notifies the cache monitor that an error occurred, and kicks off the error recovery process.
|
void |
notifyShutdown()
Notifies the cache monitor that the service shall shut down
|
void |
run()
Main processing method for the LateralCacheMonitor object
|
static void |
setIdlePeriod(long idlePeriod)
Configures the idle period between repairs.
|
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, 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
public LateralCacheMonitor(LateralTCPCacheFactory factory)
It's the clients responsibility to decide how many of these there will be.
factory
- a reference to the factory that manages the service instancespublic static void setIdlePeriod(long idlePeriod)
idlePeriod
- The new idlePeriod valueprotected static void forceShortIdlePeriod(long idlePeriod)
idlePeriod
- public void addCache(LateralCacheNoWait<?,?> cache)
cache
- the cachepublic void notifyError()
public void notifyShutdown()
Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.