org.apache.jcs.auxiliary.lateral
Class LateralCacheRestore

java.lang.Object
  extended byorg.apache.jcs.auxiliary.lateral.LateralCacheRestore
All Implemented Interfaces:
ICacheRestore

public class LateralCacheRestore
extends java.lang.Object
implements ICacheRestore

Used to repair the lateral caches managed by the associated instance of LateralCacheManager.

Author:
asmuts

Field Summary
private  boolean canFix
           
private  java.lang.Object lateralObj
           
private  LateralCacheManager lcm
           
private static org.apache.commons.logging.Log log
           
 
Constructor Summary
LateralCacheRestore(LateralCacheManager lcm)
          Constructs with the given instance of LateralCacheManager.
 
Method Summary
 boolean canFix()
          Returns true iff the connection to the lateral host for the corresponding cache manager can be successfully re-established.
 void fix()
          Fixes up all the caches managed by the associated cache manager.
 
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

lcm

private final LateralCacheManager lcm

canFix

private boolean canFix

lateralObj

private java.lang.Object lateralObj
Constructor Detail

LateralCacheRestore

public LateralCacheRestore(LateralCacheManager lcm)
Constructs with the given instance of LateralCacheManager.

Parameters:
lcm -
Method Detail

canFix

public boolean canFix()
Returns true iff the connection to the lateral host for the corresponding cache manager can be successfully re-established.

Specified by:
canFix in interface ICacheRestore

fix

public void fix()
Fixes up all the caches managed by the associated cache manager.

Specified by:
fix in interface ICacheRestore