@Module public final class CacheStoreManager extends java.lang.Object implements CacheEntryFactory
Constructor and Description |
---|
CacheStoreManager(ResinSystem resinSystem) |
Modifier and Type | Method and Description |
---|---|
void |
addCacheConfig(byte[] cacheHash,
CacheConfig config) |
void |
addCacheListener(HashKey cacheKey,
CacheMnodeListener listener) |
long |
calculateValueHash(java.lang.Object value,
CacheConfig config) |
void |
clearEphemeralEntries()
Clears ephemeral data on startup.
|
void |
clearLeases()
Clears leases on server start/stop
|
void |
close()
Closes the manager.
|
void |
closeCache(java.lang.String guid,
HashKey cacheKey) |
DistCacheEntry |
createCacheEntry(HashKey hashKey,
CacheHandle cache)
Returns the key entry.
|
void |
destroyCache(CacheImpl<?,?> cache)
Called when a cache is removed.
|
CacheHandle |
getCache(HashKey cacheHash) |
CacheHandle |
getCache(java.lang.String guid,
CacheSerializer keySerializer)
Returns the CacheHandle.
|
CacheConfig |
getCacheConfig(byte[] cacheHash) |
CacheEngine |
getCacheEngine() |
DistCacheEntry |
getCacheEntry(HashKey key)
Returns the key entry.
|
DistCacheEntry |
getCacheEntry(HashKey key,
CacheHandle cache)
Returns the key entry.
|
DistCacheEntry |
getCacheEntry(HashKey key,
HashKey cacheKey)
Returns the key entry.
|
DistCacheEntry |
getCacheEntry(HashKey hashKey,
HashKey cacheKey,
java.lang.Object oKey)
Returns the key entry.
|
DistCacheEntry |
getCacheEntry(java.lang.Object key,
CacheConfig config)
Returns the key entry.
|
CacheEntryManager |
getCacheEntryManager() |
CacheDataBacking |
getDataBacking() |
DataStore |
getDataStore() |
CacheConfig |
getDefaultCacheConfig() |
java.util.Iterator<DistCacheEntry> |
getEntries() |
java.util.Iterator<HashKey> |
getEntries(HashKey cacheKey) |
CacheKeyManager |
getKeyManager() |
LocalDataManager |
getLocalDataManager() |
com.caucho.server.distcache.LocalMnodeManager |
getLocalMnodeManager() |
LocalStoreManager |
getLocalStoreManager() |
MnodeStore |
getMnodeStore() |
void |
initCache(CacheImpl<?,?> cache)
Called when a cache initializes.
|
boolean |
isClosed() |
DistCacheEntry |
loadLocalEntry(HashKey key,
CacheConfig config) |
DistCacheEntry |
loadLocalEntry(HashKey key,
HashKey cacheKey) |
MnodeUpdate |
localPut(byte[] keyHash,
MnodeUpdate update,
StreamSource source)
localPut updates the local copy based on a CachePut message
|
void |
saveLocalUpdateTime(HashKey key,
long version,
long accessTimeout,
long lastAccessTime)
Sets a cache entry
|
void |
setCacheEngine(CacheEngine cacheEngine) |
void |
start() |
void |
stop() |
java.lang.String |
toString() |
public CacheStoreManager(ResinSystem resinSystem)
public final CacheEntryManager getCacheEntryManager()
public void setCacheEngine(CacheEngine cacheEngine)
public CacheEngine getCacheEngine()
public CacheDataBacking getDataBacking()
public com.caucho.server.distcache.LocalMnodeManager getLocalMnodeManager()
public LocalDataManager getLocalDataManager()
public LocalStoreManager getLocalStoreManager()
public CacheKeyManager getKeyManager()
public final CacheConfig getDefaultCacheConfig()
public void addCacheListener(HashKey cacheKey, CacheMnodeListener listener)
public final DistCacheEntry getCacheEntry(java.lang.Object key, CacheConfig config)
public final DistCacheEntry getCacheEntry(HashKey key)
public final DistCacheEntry getCacheEntry(HashKey hashKey, HashKey cacheKey, java.lang.Object oKey)
public final DistCacheEntry getCacheEntry(HashKey key, HashKey cacheKey)
public final DistCacheEntry getCacheEntry(HashKey key, CacheHandle cache)
public DistCacheEntry createCacheEntry(HashKey hashKey, CacheHandle cache)
createCacheEntry
in interface CacheEntryFactory
public final CacheHandle getCache(java.lang.String guid, CacheSerializer keySerializer)
public final CacheHandle getCache(HashKey cacheHash)
public final DistCacheEntry loadLocalEntry(HashKey key, CacheConfig config)
public final DistCacheEntry loadLocalEntry(HashKey key, HashKey cacheKey)
public final void saveLocalUpdateTime(HashKey key, long version, long accessTimeout, long lastAccessTime)
public MnodeUpdate localPut(byte[] keyHash, MnodeUpdate update, StreamSource source)
public final void clearLeases()
public void clearEphemeralEntries()
public java.util.Iterator<DistCacheEntry> getEntries()
public void start()
public void stop()
public void closeCache(java.lang.String guid, HashKey cacheKey)
public void initCache(CacheImpl<?,?> cache)
public void destroyCache(CacheImpl<?,?> cache)
public void addCacheConfig(byte[] cacheHash, CacheConfig config)
public CacheConfig getCacheConfig(byte[] cacheHash)
cacheHash
- public void close()
public boolean isClosed()
public long calculateValueHash(java.lang.Object value, CacheConfig config)
public MnodeStore getMnodeStore()
public DataStore getDataStore()
public java.lang.String toString()
toString
in class java.lang.Object