public class ClusterDataBacking extends CacheDataBackingImpl
| Constructor and Description |
|---|
ClusterDataBacking(CacheStoreManager storeManager,
ClusterCacheEngine manager,
javax.sql.DataSource dataSource) |
| Modifier and Type | Method and Description |
|---|---|
MnodeEntry |
insertLocalValue(HashKey key,
HashKey cacheKey,
MnodeEntry mnodeValue,
MnodeEntry oldEntryValue)
Sets a cache entry
|
boolean |
isDataAvailable(long valueDataId,
long valueDataTime) |
boolean |
loadData(long valueDataId,
long valueDataTime,
WriteStream os) |
MnodeEntry |
loadLocalEntryValue(HashKey key)
Returns the local value from the database
|
boolean |
putLocalValue(MnodeEntry mnodeValue,
HashKey key,
HashKey cacheKey,
MnodeEntry oldEntryValue,
MnodeUpdate mnodeUpdate)
Sets a cache entry
|
DataStore.DataItem |
saveData(StreamSource source,
int length) |
MnodeEntry |
saveLocalUpdateTime(HashKey keyHash,
MnodeEntry mnodeValue,
MnodeEntry oldMnodeValue) |
close, getDataStore, getEntries, getMnodeStore, getReaperCycleIdleToActiveUtilizationRatio, getReaperCycleMaxActiveTime, getReaperTimeout, getStartupLastUpdateTime, getStartupLastUpdateTime, getUpdates, getUpdates, loadBlob, removeData, saveData, setDataStore, setMnodeStore, setReaperCycleIdleToActiveUtilizationRatio, setReaperCycleMaxActiveTime, setReaperTimeout, start, toStringpublic ClusterDataBacking(CacheStoreManager storeManager, ClusterCacheEngine manager, javax.sql.DataSource dataSource)
public MnodeEntry loadLocalEntryValue(HashKey key)
loadLocalEntryValue in interface CacheDataBackingloadLocalEntryValue in class CacheDataBackingImplpublic MnodeEntry insertLocalValue(HashKey key, HashKey cacheKey, MnodeEntry mnodeValue, MnodeEntry oldEntryValue)
insertLocalValue in interface CacheDataBackinginsertLocalValue in class CacheDataBackingImplpublic boolean putLocalValue(MnodeEntry mnodeValue, HashKey key, HashKey cacheKey, MnodeEntry oldEntryValue, MnodeUpdate mnodeUpdate)
CacheDataBackingputLocalValue in interface CacheDataBackingputLocalValue in class CacheDataBackingImplpublic MnodeEntry saveLocalUpdateTime(HashKey keyHash, MnodeEntry mnodeValue, MnodeEntry oldMnodeValue)
saveLocalUpdateTime in interface CacheDataBackingsaveLocalUpdateTime in class CacheDataBackingImplpublic boolean loadData(long valueDataId,
long valueDataTime,
WriteStream os)
throws java.io.IOException
loadData in interface CacheDataBackingloadData in class CacheDataBackingImpljava.io.IOExceptionpublic DataStore.DataItem saveData(StreamSource source, int length)
saveData in interface CacheDataBackingsaveData in class CacheDataBackingImplpublic boolean isDataAvailable(long valueDataId,
long valueDataTime)
isDataAvailable in interface CacheDataBackingisDataAvailable in class CacheDataBackingImpl