Class RemoteCacheMonitor
java.lang.Object
java.lang.Thread
org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheMonitor
org.apache.commons.jcs3.auxiliary.remote.RemoteCacheMonitor
- All Implemented Interfaces:
Runnable
Used to monitor and repair any failed connection for the remote cache service. By default the
monitor operates in a failure driven mode. That is, it goes into a wait state until there is an
error.
TODO consider moving this into an active monitoring mode. 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, log
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addManager
(RemoteCacheManager manager) Add a manager to be monitoredvoid
dispose()
Clean up all resources before shutdownvoid
doWork()
Main processing method for the RemoteCacheMonitor objectMethods inherited from class org.apache.commons.jcs3.auxiliary.AbstractAuxiliaryCacheMonitor
notifyError, notifyShutdown, run, setIdlePeriod
Methods 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
-
RemoteCacheMonitor
public RemoteCacheMonitor()Constructor for the RemoteCacheMonitor object
-
-
Method Details
-
addManager
Add a manager to be monitored- Parameters:
manager
- the remote cache manager
-
dispose
Clean up all resources before shutdown- Specified by:
dispose
in classAbstractAuxiliaryCacheMonitor
-
doWork
Main processing method for the RemoteCacheMonitor object- Specified by:
doWork
in classAbstractAuxiliaryCacheMonitor
-