com.caucho.env.distcache
Interface CacheDataBacking

All Known Implementing Classes:
CacheDataBackingImpl

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, HashKey cacheKey, MnodeEntry mnodeValue, MnodeEntry oldMnodeValue)
           
 boolean isDataAvailable(long valueDataId)
           
 java.sql.Blob loadBlob(long valueDataId)
           
 boolean loadData(long valueDataId, WriteStream os)
           
 MnodeEntry loadLocalEntryValue(HashKey key)
           
 boolean putLocalValue(MnodeEntry mnodeValue, HashKey key, HashKey cacheKey, MnodeEntry oldEntryValue, MnodeUpdate mnodeUpdate)
          Sets a cache entry
 boolean removeData(long valueDataId)
           
 long saveData(java.io.InputStream mIn, int length)
           
 long saveData(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,
                            HashKey cacheKey,
                            MnodeEntry mnodeValue,
                            MnodeEntry oldMnodeValue)

saveLocalUpdateTime

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

putLocalValue

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


loadData

boolean loadData(long valueDataId,
                 WriteStream os)
                 throws java.io.IOException
Throws:
java.io.IOException

loadBlob

java.sql.Blob loadBlob(long valueDataId)

saveData

long saveData(java.io.InputStream mIn,
              int length)
              throws java.io.IOException
Throws:
java.io.IOException

saveData

long saveData(StreamSource source,
              int length)

removeData

boolean removeData(long valueDataId)

isDataAvailable

boolean isDataAvailable(long valueDataId)

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.