com.caucho.server.distcache
Class AbstractCacheBackupEngine

java.lang.Object
  extended by com.caucho.server.distcache.AbstractCacheBackupEngine
All Implemented Interfaces:
CacheBackupEngine

public class AbstractCacheBackupEngine
extends java.lang.Object
implements CacheBackupEngine

Backup for the distributed cache


Constructor Summary
AbstractCacheBackupEngine()
           
 
Method Summary
 MnodeValue get(DistCacheEntry entry)
           
 void put(byte[] key, byte[] cacheHash, MnodeUpdate mnodeUpdate, StreamSource valueStream)
           
 void remove(byte[] key, byte[] cacheHash, MnodeUpdate mnodeUpdate)
           
 void start()
          Starts the service
 void updateTime(byte[] key, MnodeEntry mnodeValue)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AbstractCacheBackupEngine

public AbstractCacheBackupEngine()
Method Detail

start

public void start()
Description copied from interface: CacheBackupEngine
Starts the service

Specified by:
start in interface CacheBackupEngine

get

public MnodeValue get(DistCacheEntry entry)
Specified by:
get in interface CacheBackupEngine

put

public void put(byte[] key,
                byte[] cacheHash,
                MnodeUpdate mnodeUpdate,
                StreamSource valueStream)
Specified by:
put in interface CacheBackupEngine

updateTime

public void updateTime(byte[] key,
                       MnodeEntry mnodeValue)
Specified by:
updateTime in interface CacheBackupEngine

remove

public void remove(byte[] key,
                   byte[] cacheHash,
                   MnodeUpdate mnodeUpdate)
Specified by:
remove in interface CacheBackupEngine