org.apache.jcs.auxiliary.remote
Class RemoteCacheFailoverRunner

java.lang.Object
  extended byorg.apache.jcs.auxiliary.remote.RemoteCacheFailoverRunner
All Implemented Interfaces:
java.lang.Runnable

public class RemoteCacheFailoverRunner
extends java.lang.Object
implements java.lang.Runnable

Description of the Class

Author:
asmuts

Field Summary
private  boolean alright
           
private  RemoteCacheNoWaitFacade facade
           
private static long idlePeriod
           
private static org.apache.commons.logging.Log log
           
 
Constructor Summary
RemoteCacheFailoverRunner(RemoteCacheNoWaitFacade facade)
          Constructor for the RemoteCacheFailoverRunner object
 
Method Summary
private  void bad()
          Sets the "alright" flag to false in a critial section.
 void notifyError()
          Notifies the cache monitor that an error occurred, and kicks off the error recovery process.
 void run()
          Main processing method for the RemoteCacheFailoverRunner object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

private static final org.apache.commons.logging.Log log

facade

private RemoteCacheNoWaitFacade facade

idlePeriod

private static long idlePeriod

alright

private boolean alright
Constructor Detail

RemoteCacheFailoverRunner

public RemoteCacheFailoverRunner(RemoteCacheNoWaitFacade facade)
Constructor for the RemoteCacheFailoverRunner object

Parameters:
facade -
Method Detail

notifyError

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


run

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

Specified by:
run in interface java.lang.Runnable

bad

private void bad()
Sets the "alright" flag to false in a critial section.