com.caucho.env.distcache
Interface CacheDataBacking

All Known Implementing Classes:
CacheDataBackingImpl, ClusterDataBacking

public interface CacheDataBacking

The local cache repository.


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 mnodeValue, MnodeEntry oldMnodeValue)
           
 boolean isDataAvailable(HashKey valueKey)
           
 java.sql.Blob loadBlob(HashKey valueHash)
           
 boolean loadData(HashKey valueHash, WriteStream os)
           
 MnodeEntry loadLocalEntryValue(HashKey key)
           
 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 start()
           
 

Method Detail

getDataStore

DataStore getDataStore()
Returns the underlying DataStore, used for serialization.


getMnodeStore

MnodeStore getMnodeStore()

start

void start()

loadLocalEntryValue

MnodeEntry loadLocalEntryValue(HashKey key)

insertLocalValue

MnodeEntry insertLocalValue(HashKey key,
                            MnodeEntry mnodeValue,
                            MnodeEntry oldMnodeValue)

saveLocalUpdateTime

MnodeEntry saveLocalUpdateTime(HashKey keyHash,
                               MnodeEntry mnodeValue,
                               MnodeEntry oldMnodeValue)

putLocalValue

boolean putLocalValue(MnodeEntry mnodeValue,
                      HashKey key,
                      MnodeEntry oldEntryValue,
                      MnodeUpdate mnodeUpdate)
Sets a cache entry


loadData

boolean loadData(HashKey valueHash,
                 WriteStream os)
                 throws java.io.IOException
Throws:
java.io.IOException

loadBlob

java.sql.Blob loadBlob(HashKey valueHash)

saveData

boolean saveData(HashKey valueHash,
                 StreamSource source,
                 int length)
                 throws java.io.IOException
Throws:
java.io.IOException

isDataAvailable

boolean isDataAvailable(HashKey valueKey)

getStartupLastUpdateTime

long getStartupLastUpdateTime()
Returns the last update time on server startup.


getStartupLastUpdateTime

long getStartupLastUpdateTime(HashKey cacheKey)
Returns the last update time on server startup.


getUpdates

java.util.ArrayList<CacheData> getUpdates(long accessTime,
                                          int offset)
Returns a set of entries since an access time.


getUpdates

java.util.ArrayList<CacheData> getUpdates(HashKey cacheKey,
                                          long accessTime,
                                          int offset)
Returns a set of entries since an access time.


close

void close()
Close the backing.