|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.server.distcache.CacheDataBackingImpl
public class CacheDataBackingImpl
Manages the distributed cache
| Constructor Summary | |
|---|---|
CacheDataBackingImpl()
|
|
| Method Summary | |
|---|---|
void |
close()
Close the backing. |
DataStore |
getDataStore()
Returns the underlying DataStore, used for serialization. |
MnodeStore |
getMnodeStore()
|
long |
getStartupLastUpdateTime()
Returns the last update time on server startup. |
long |
getStartupLastUpdateTime(HashKey cacheKey)
Returns the last update time on server startup. |
java.util.ArrayList<CacheData> |
getUpdates(HashKey cacheKey,
long accessTime,
int offset)
Returns a set of entries since an access time. |
java.util.ArrayList<CacheData> |
getUpdates(long accessTime,
int offset)
Returns a set of entries since an access time. |
MnodeEntry |
insertLocalValue(HashKey key,
MnodeEntry mnodeUpdate,
MnodeEntry oldEntryValue)
Sets a cache entry |
boolean |
isDataAvailable(HashKey valueKey)
|
java.sql.Blob |
loadBlob(HashKey valueHash)
|
boolean |
loadData(HashKey valueHash,
WriteStream os)
|
MnodeEntry |
loadLocalEntryValue(HashKey key)
Returns the local value from the database |
boolean |
putLocalValue(MnodeEntry mnodeValue,
HashKey key,
MnodeEntry oldEntryValue,
MnodeUpdate mnodeUpdate)
Sets a cache entry |
boolean |
saveData(HashKey valueHash,
StreamSource source,
int length)
|
MnodeEntry |
saveLocalUpdateTime(HashKey keyHash,
MnodeEntry mnodeValue,
MnodeEntry oldMnodeValue)
|
void |
setDataStore(DataStore dataStore)
|
void |
setMnodeStore(MnodeStore mnodeStore)
|
void |
start()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CacheDataBackingImpl()
| Method Detail |
|---|
public void setDataStore(DataStore dataStore)
public void setMnodeStore(MnodeStore mnodeStore)
public DataStore getDataStore()
CacheDataBacking
getDataStore in interface CacheDataBackingpublic MnodeStore getMnodeStore()
getMnodeStore in interface CacheDataBackingpublic MnodeEntry loadLocalEntryValue(HashKey key)
loadLocalEntryValue in interface CacheDataBacking
public MnodeEntry insertLocalValue(HashKey key,
MnodeEntry mnodeUpdate,
MnodeEntry oldEntryValue)
insertLocalValue in interface CacheDataBacking
public boolean putLocalValue(MnodeEntry mnodeValue,
HashKey key,
MnodeEntry oldEntryValue,
MnodeUpdate mnodeUpdate)
CacheDataBacking
putLocalValue in interface CacheDataBacking
public MnodeEntry saveLocalUpdateTime(HashKey keyHash,
MnodeEntry mnodeValue,
MnodeEntry oldMnodeValue)
saveLocalUpdateTime in interface CacheDataBacking
public boolean loadData(HashKey valueHash,
WriteStream os)
throws java.io.IOException
loadData in interface CacheDataBackingjava.io.IOExceptionpublic java.sql.Blob loadBlob(HashKey valueHash)
loadBlob in interface CacheDataBacking
public boolean saveData(HashKey valueHash,
StreamSource source,
int length)
throws java.io.IOException
saveData in interface CacheDataBackingjava.io.IOExceptionpublic boolean isDataAvailable(HashKey valueKey)
isDataAvailable in interface CacheDataBackingpublic long getStartupLastUpdateTime()
getStartupLastUpdateTime in interface CacheDataBackingpublic long getStartupLastUpdateTime(HashKey cacheKey)
getStartupLastUpdateTime in interface CacheDataBacking
public java.util.ArrayList<CacheData> getUpdates(long accessTime,
int offset)
getUpdates in interface CacheDataBacking
public java.util.ArrayList<CacheData> getUpdates(HashKey cacheKey,
long accessTime,
int offset)
getUpdates in interface CacheDataBackingpublic void start()
start in interface CacheDataBackingpublic void close()
CacheDataBacking
close in interface CacheDataBacking
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||