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, toString
public ClusterDataBacking(CacheStoreManager storeManager, ClusterCacheEngine manager, javax.sql.DataSource dataSource)
public MnodeEntry loadLocalEntryValue(HashKey key)
loadLocalEntryValue
in interface CacheDataBacking
loadLocalEntryValue
in class CacheDataBackingImpl
public MnodeEntry insertLocalValue(HashKey key, HashKey cacheKey, MnodeEntry mnodeValue, MnodeEntry oldEntryValue)
insertLocalValue
in interface CacheDataBacking
insertLocalValue
in class CacheDataBackingImpl
public boolean putLocalValue(MnodeEntry mnodeValue, HashKey key, HashKey cacheKey, MnodeEntry oldEntryValue, MnodeUpdate mnodeUpdate)
CacheDataBacking
putLocalValue
in interface CacheDataBacking
putLocalValue
in class CacheDataBackingImpl
public MnodeEntry saveLocalUpdateTime(HashKey keyHash, MnodeEntry mnodeValue, MnodeEntry oldMnodeValue)
saveLocalUpdateTime
in interface CacheDataBacking
saveLocalUpdateTime
in class CacheDataBackingImpl
public boolean loadData(long valueDataId, long valueDataTime, WriteStream os) throws java.io.IOException
loadData
in interface CacheDataBacking
loadData
in class CacheDataBackingImpl
java.io.IOException
public DataStore.DataItem saveData(StreamSource source, int length)
saveData
in interface CacheDataBacking
saveData
in class CacheDataBackingImpl
public boolean isDataAvailable(long valueDataId, long valueDataTime)
isDataAvailable
in interface CacheDataBacking
isDataAvailable
in class CacheDataBackingImpl