org.apache.jcs.auxiliary.lateral.behavior
Interface ILateralCacheManager

All Superinterfaces:
AuxiliaryCacheManager, ICacheType, java.io.Serializable
All Known Implementing Classes:
LateralCacheAbstractManager, LateralTCPCacheManager

public interface ILateralCacheManager
extends AuxiliaryCacheManager

This helps ensure some common behavior among LateraLCacheManagers for things such as monitors.

Author:
Aaron Smuts

Field Summary
 
Fields inherited from interface org.apache.jcs.engine.behavior.ICacheType
CACHE_HUB, DISK_CACHE, LATERAL_CACHE, REMOTE_CACHE
 
Method Summary
 void fixCaches(ILateralCacheService lateralService, ILateralCacheObserver lateralWatch)
          Sets the corrected service.
 java.lang.Object fixService()
          The restore calls this on the manger if a cache if found to be in error.
 java.util.Map getCaches()
          This is a temporary solution that allows the monitor to get caches from an instance of a manager.
 java.util.Map getInstances()
          This is a temporary solution that allows the monitor to get the instances of a manager.
 
Methods inherited from interface org.apache.jcs.auxiliary.AuxiliaryCacheManager
getCache
 
Methods inherited from interface org.apache.jcs.engine.behavior.ICacheType
getCacheType
 

Method Detail

getInstances

java.util.Map getInstances()
This is a temporary solution that allows the monitor to get the instances of a manager.

Returns:
Map

getCaches

java.util.Map getCaches()
This is a temporary solution that allows the monitor to get caches from an instance of a manager.

Returns:
Map

fixService

java.lang.Object fixService()
                            throws java.io.IOException
The restore calls this on the manger if a cache if found to be in error.

Returns:
Object is the service if it can be fixed.
Throws:
java.io.IOException - if the service cannot be fixed.

fixCaches

void fixCaches(ILateralCacheService lateralService,
               ILateralCacheObserver lateralWatch)
Sets the corrected service. The restore process will call this if it gets a good service back from fixService.

Parameters:
lateralService -
lateralWatch -


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