Class RemoteHttpCacheMonitor
java.lang.Object
java.lang.Thread
org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheMonitor
org.apache.commons.jcs3.auxiliary.remote.http.client.RemoteHttpCacheMonitor
- All Implemented Interfaces:
Runnable
Upon the notification of a connection error, the monitor changes to operate in a time driven
mode. That is, it attempts to recover the connections on a periodic basis. When all failed
connections are restored, it changes back to the failure driven mode.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler -
Field Summary
Fields inherited from class org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheMonitor
allright, idlePeriod, logFields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY -
Constructor Summary
ConstructorsConstructorDescriptionConstructor for the RemoteCacheMonitor object -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddispose()Clean up all resources before shutdownprotected voiddoWork()Main processing method for the RemoteHttpCacheMonitor objectvoidnotifyError(RemoteHttpCache<?, ?> remoteCache) Notifies the cache monitor that an error occurred, and kicks off the error recovery process.Methods inherited from class org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheMonitor
notifyError, notifyShutdown, run, setIdlePeriodMethods inherited from class java.lang.Thread
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
-
Constructor Details
-
RemoteHttpCacheMonitor
Constructor for the RemoteCacheMonitor object- Parameters:
factory- the factory to set
-
-
Method Details
-
notifyError
Notifies the cache monitor that an error occurred, and kicks off the error recovery process.- Parameters:
remoteCache-
-
dispose
Clean up all resources before shutdown- Specified by:
disposein classAbstractAuxiliaryCacheMonitor
-
doWork
Main processing method for the RemoteHttpCacheMonitor object- Specified by:
doWorkin classAbstractAuxiliaryCacheMonitor
-