org.apache.jcs.auxiliary.remote.http.client
Class RemoteHttpCacheMonitor

java.lang.Object
  extended by org.apache.jcs.auxiliary.remote.http.client.RemoteHttpCacheMonitor
All Implemented Interfaces:
Runnable

public class RemoteHttpCacheMonitor
extends Object
implements 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.


Method Summary
 void notifyError(RemoteHttpCache remoteCache)
          Notifies the cache monitor that an error occurred, and kicks off the error recovery process.
 void run()
          Main processing method for the RemoteCacheMonitor object
static void setIdlePeriod(long idlePeriod)
          Configures the idle period between repairs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setIdlePeriod

public static void setIdlePeriod(long idlePeriod)
Configures the idle period between repairs.

Parameters:
idlePeriod - The new idlePeriod value

notifyError

public void notifyError(RemoteHttpCache remoteCache)
Notifies the cache monitor that an error occurred, and kicks off the error recovery process.

Parameters:
remoteCache -

run

public void run()
Main processing method for the RemoteCacheMonitor object

Specified by:
run in interface Runnable


Copyright © 2002-2012 Apache Software Foundation. All Rights Reserved.