Package | Description |
---|---|
com.caucho.distcache | |
com.caucho.distcache.cluster | |
com.caucho.distcache.jdbc | |
com.caucho.env.distcache | |
com.caucho.memcached | |
com.caucho.server.distcache | |
com.caucho.util |
Assorted utilities
|
Modifier and Type | Method and Description |
---|---|
HashKey |
AbstractCache.getCacheKey() |
HashKey |
ExtCacheEntry.getKeyHash()
Returns the key hash for the current entry.
|
HashKey |
AbstractCache.getKeyHash(java.lang.Object key)
Returns the hash of the given key
|
Modifier and Type | Method and Description |
---|---|
ExtCacheEntry |
AbstractCache.getExtCacheEntry(HashKey key) |
Modifier and Type | Method and Description |
---|---|
MnodeEntry |
ClusterDataBacking.insertLocalValue(HashKey key,
HashKey cacheKey,
MnodeEntry mnodeValue,
MnodeEntry oldEntryValue)
Sets a cache entry
|
boolean |
ClusterCacheEngine.isLocalExpired(CacheConfig config,
HashKey key,
MnodeEntry mnodeEntry,
long now) |
MnodeEntry |
ClusterDataBacking.loadLocalEntryValue(HashKey key)
Returns the local value from the database
|
protected void |
CacheMnodeActor.localNotifyLeaseChange(HashKey key,
HashKey cacheKey,
TriadOwner keyOwner,
int leaseOwner)
Notify the lease owner of a change in the value.
|
void |
ClusterCacheEngine.notifyLease(HashKey key,
HashKey cacheKey,
int leaseOwner) |
void |
ClusterCacheEngine.put(HashKey key,
HashKey cacheKey,
MnodeUpdate mnodeUpdate,
long valueDataId,
long valueDataTime) |
boolean |
ClusterDataBacking.putLocalValue(MnodeEntry mnodeValue,
HashKey key,
HashKey cacheKey,
MnodeEntry oldEntryValue,
MnodeUpdate mnodeUpdate) |
void |
ClusterCacheEngine.remove(HashKey key,
HashKey cacheKey,
MnodeUpdate mnodeUpdate) |
MnodeEntry |
ClusterDataBacking.saveLocalUpdateTime(HashKey keyHash,
MnodeEntry mnodeValue,
MnodeEntry oldMnodeValue) |
void |
ClusterCacheEngine.updateTime(HashKey key,
HashKey cacheKey,
MnodeEntry mnodeValue) |
void |
CacheMnodeActor.updateTime(HashKey key,
HashKey cacheKey,
MnodeEntry mnodeValue)
Updates the time for a cache map entry
|
void |
CacheMnodeLocalProxy.updateTime(HashKey key,
HashKey cacheKey,
MnodeEntry mnodeValue) |
Modifier and Type | Method and Description |
---|---|
boolean |
JdbcMnodeStore.insert(HashKey id,
HashKey cacheKey,
MnodeValue mnodeUpdate,
long valueDataId,
long valueDataTime,
long lastAccessTime,
long lastModifiedTime)
Stores the data, returning true on success
|
boolean |
JdbcDataStore.isDataAvailable(HashKey id)
Checks if we have the data
|
MnodeEntry |
JdbcMnodeStore.load(HashKey id)
Reads the object from the data store.
|
boolean |
JdbcDataStore.load(HashKey id,
CacheDataBacking dataBacking) |
boolean |
JdbcDataStore.load(HashKey id,
WriteStream os)
Reads the object from the data store.
|
java.io.InputStream |
JdbcDataStore.openInputStream(HashKey id)
Reads the object from the data store.
|
void |
JdbcDataStore.save(HashKey valueHash,
CacheDataBacking dataBacking) |
long |
JdbcDataStore.save(HashKey id,
java.io.InputStream is,
int length)
Saves the data, returning true on success.
|
long |
JdbcDataStore.save(HashKey id,
StreamSource source,
int length)
Saves the data, returning true on success.
|
boolean |
JdbcMnodeStore.updateAccessTime(HashKey id,
long itemVersion,
long accessTimeout,
long accessTime)
Updates the update time, returning true on success
|
Modifier and Type | Method and Description |
---|---|
long |
CacheDataBacking.getStartupLastUpdateTime(HashKey cacheKey)
Returns the last update time on server startup.
|
java.util.ArrayList<CacheData> |
CacheDataBacking.getUpdates(HashKey cacheKey,
long accessTime,
int offset)
Returns a set of entries since an access time.
|
MnodeEntry |
CacheDataBacking.insertLocalValue(HashKey key,
HashKey cacheKey,
MnodeEntry mnodeValue,
MnodeEntry oldMnodeValue) |
MnodeEntry |
CacheDataBacking.loadLocalEntryValue(HashKey key) |
void |
CacheClusterBacking.putCluster(HashKey key,
MnodeUpdate mnodeUpdate,
MnodeEntry mnodeValue) |
void |
AbstractCacheClusterBacking.putCluster(HashKey key,
MnodeUpdate mnodeUpdate,
MnodeEntry mnodeValue) |
boolean |
CacheDataBacking.putLocalValue(MnodeEntry mnodeValue,
HashKey key,
HashKey cacheKey,
MnodeEntry oldEntryValue,
MnodeUpdate mnodeUpdate)
Sets a cache entry
|
void |
CacheClusterBacking.removeCluster(HashKey key,
MnodeUpdate mnodeUpdate,
MnodeEntry mnodeValue) |
void |
AbstractCacheClusterBacking.removeCluster(HashKey key,
MnodeUpdate mnodeUpdate,
MnodeEntry mnodeValue) |
MnodeEntry |
CacheDataBacking.saveLocalUpdateTime(HashKey keyHash,
MnodeEntry mnodeValue,
MnodeEntry oldMnodeValue) |
Modifier and Type | Method and Description |
---|---|
void |
MemcachedCacheEngine.put(HashKey hashKey,
HashKey cacheKey,
MnodeUpdate mnodeUpdate,
long valueDataId,
long valueDataTime) |
void |
MemcachedCacheEngine.remove(HashKey hashKey,
HashKey cacheKey,
MnodeUpdate mnodeUpdate) |
Modifier and Type | Field and Description |
---|---|
static HashKey |
HashManager.NULL |
Modifier and Type | Method and Description |
---|---|
protected HashKey |
CacheKeyManager.createHashKey(java.lang.Object key,
CacheConfig config) |
protected HashKey |
CacheKeyManager.createHashKeyImpl(java.lang.Object key,
CacheConfig config)
Returns the key hash
|
HashKey |
CacheKeyManager.createSelfHashKey(java.lang.Object key,
CacheSerializer keySerializer)
Returns the key hash
|
HashKey |
HashManager.generateHash(HashKey priorHash,
java.lang.String key)
Generates a hash from a prior hash and a string
|
HashKey |
HashManager.generateHash(java.lang.String key)
Generates a hash from a string
|
HashKey |
CacheConfig.getCacheKey()
Returns the globally-unique id for the cache.
|
HashKey |
CacheHandle.getCacheKey() |
HashKey |
DistCacheEntry.getCacheKey() |
HashKey |
CacheImpl.getCacheKey() |
HashKey |
CacheData.getCacheKey() |
HashKey |
CacheData.getKey() |
HashKey |
ExtCacheEntryFacade.getKeyHash()
Returns the keyHash
|
HashKey |
DistCacheEntry.getKeyHash()
Returns the keyHash
|
HashKey |
CacheImpl.getKeyHash(java.lang.Object key)
Returns the hash of the given key
|
Modifier and Type | Method and Description |
---|---|
java.util.Iterator<HashKey> |
CacheDataBackingImpl.getEntries(HashKey cacheKey) |
java.util.Iterator<HashKey> |
CacheStoreManager.getEntries(HashKey cacheKey) |
java.util.Iterator<HashKey> |
MnodeStore.getKeys(HashKey cacheKey) |
Modifier and Type | Method and Description |
---|---|
void |
CacheStoreManager.addCacheListener(HashKey cacheKey,
CacheMnodeListener listener) |
void |
CacheStoreManager.closeCache(java.lang.String guid,
HashKey cacheKey) |
DistCacheEntry |
CacheEntryFactory.createCacheEntry(HashKey key,
CacheHandle cache) |
DistCacheEntry |
CacheStoreManager.createCacheEntry(HashKey hashKey,
CacheHandle cache)
Returns the key entry.
|
DistCacheEntry |
CacheEntryManager.createCacheEntry(HashKey key,
CacheHandle cache)
Returns the key entry, creating on if necessary.
|
HashKey |
HashManager.generateHash(HashKey priorHash,
java.lang.String key)
Generates a hash from a prior hash and a string
|
CacheHandle |
CacheStoreManager.getCache(HashKey cacheHash) |
DistCacheEntry |
CacheStoreManager.getCacheEntry(HashKey key)
Returns the key entry.
|
DistCacheEntry |
CacheEntryManager.getCacheEntry(HashKey key)
Returns the cache entry.
|
DistCacheEntry |
CacheKeyManager.getCacheEntry(HashKey hashKey,
CacheHandle cache)
Returns the key entry.
|
DistCacheEntry |
CacheStoreManager.getCacheEntry(HashKey key,
CacheHandle cache)
Returns the key entry.
|
DistCacheEntry |
CacheStoreManager.getCacheEntry(HashKey key,
HashKey cacheKey)
Returns the key entry.
|
DistCacheEntry |
CacheStoreManager.getCacheEntry(HashKey hashKey,
HashKey cacheKey,
java.lang.Object oKey)
Returns the key entry.
|
protected DistCacheEntry |
CacheImpl.getDistCacheEntry(HashKey key)
Returns the CacheKeyEntry for the given key.
|
java.util.Iterator<HashKey> |
CacheDataBackingImpl.getEntries(HashKey cacheKey) |
java.util.Iterator<HashKey> |
CacheStoreManager.getEntries(HashKey cacheKey) |
ExtCacheEntry |
CacheImpl.getExtCacheEntry(HashKey key) |
java.util.Iterator<HashKey> |
MnodeStore.getKeys(HashKey cacheKey) |
long |
CacheDataBackingImpl.getStartupLastUpdateTime(HashKey cacheKey)
Returns the last update time on server startup.
|
long |
MnodeStore.getStartupLastUpdateTime(HashKey cacheKey)
Returns the max update time detected on startup.
|
java.util.ArrayList<CacheData> |
CacheDataBackingImpl.getUpdates(HashKey cacheKey,
long accessTime,
int offset)
Returns a set of entries since an access time.
|
java.util.ArrayList<CacheData> |
MnodeStore.getUpdates(HashKey cacheKey,
long updateTime,
int offset)
Returns the maximum update time on startup
|
boolean |
MnodeStore.insert(HashKey id,
HashKey cacheKey,
MnodeValue mnodeUpdate,
long valueDataId,
long valueDataTime,
long lastAccessTime,
long lastModifiedTime)
Stores the data, returning true on success
|
MnodeEntry |
CacheDataBackingImpl.insertLocalValue(HashKey key,
HashKey cacheKey,
MnodeEntry mnodeUpdate,
MnodeEntry oldEntryValue)
Sets a cache entry
|
boolean |
AbstractCacheEngine.isLocalExpired(CacheConfig config,
HashKey key,
MnodeEntry mnodeEntry,
long now) |
boolean |
CacheEngine.isLocalExpired(CacheConfig config,
HashKey key,
MnodeEntry mnodeEntry,
long now) |
MnodeEntry |
MnodeStore.load(HashKey id)
Reads the object from the data store.
|
DistCacheEntry |
CacheStoreManager.loadLocalEntry(HashKey key,
CacheConfig config) |
DistCacheEntry |
CacheStoreManager.loadLocalEntry(HashKey key,
HashKey cacheKey) |
MnodeEntry |
CacheDataBackingImpl.loadLocalEntryValue(HashKey key)
Returns the local value from the database
|
void |
AbstractCacheEngine.notifyLease(HashKey key,
HashKey cacheKey,
int leaseOwner) |
void |
CacheEngine.notifyLease(HashKey key,
HashKey cacheKey,
int leaseOwner) |
void |
LoadDataCallback.onLoad(HashKey key,
java.io.InputStream is) |
void |
MnodeOrphanListener.onOrphanValue(HashKey value) |
void |
CacheMnodeListener.onPut(HashKey key,
HashKey cacheKey,
MnodeValue value) |
void |
AbstractCacheEngine.put(HashKey key,
HashKey cacheKey,
MnodeUpdate mnodeUpdate,
long valueDataId,
long valueDataTime) |
void |
CacheEngine.put(HashKey key,
HashKey cacheKey,
MnodeUpdate mnodeUpdate,
long valueDataId,
long valueDataTime) |
boolean |
CacheDataBackingImpl.putLocalValue(MnodeEntry mnodeEntry,
HashKey key,
HashKey cacheKey,
MnodeEntry oldEntryEntry,
MnodeUpdate mnodeUpdate) |
protected java.lang.Object |
LocalDataManager.readData(HashKey key,
long valueHash,
long valueDataId,
long valueDataTime,
CacheSerializer serializer,
CacheConfig config) |
protected boolean |
LocalDataManager.readData(HashKey key,
MnodeEntry mnodeValue,
java.io.OutputStream os,
CacheConfig config) |
void |
AbstractCacheEngine.remove(HashKey key,
HashKey cacheKey,
MnodeUpdate mnodeUpdate) |
void |
CacheEngine.remove(HashKey key,
HashKey cacheKey,
MnodeUpdate mnodeUpdate) |
void |
CacheStoreManager.saveLocalUpdateTime(HashKey key,
long version,
long accessTimeout,
long lastAccessTime)
Sets a cache entry
|
MnodeEntry |
CacheDataBackingImpl.saveLocalUpdateTime(HashKey keyHash,
MnodeEntry mnodeValue,
MnodeEntry oldMnodeValue) |
boolean |
MnodeStore.updateAccessTime(HashKey id,
long itemVersion,
long accessTimeout,
long accessTime)
Updates the update time, returning true on success
|
void |
AbstractCacheEngine.updateTime(HashKey key,
HashKey cacheKey,
MnodeEntry mnodeValue) |
void |
CacheEngine.updateTime(HashKey key,
HashKey cacheKey,
MnodeEntry mnodeValue) |
Constructor and Description |
---|
CacheData(HashKey key,
HashKey cacheKey,
long valueHash,
long valueDataId,
long valueDataTime,
long valueLength,
long version,
long flags,
long accessedTimeout,
long modifiedTimeout,
long leaseTimeout,
long accessTime,
long modifiedTime) |
CacheHandle(HashKey cacheKey,
CacheConfig config) |
Modifier and Type | Field and Description |
---|---|
static HashKey |
HashKeyManager.NULL |
Modifier and Type | Method and Description |
---|---|
static HashKey |
HashKey.create(byte[] hash) |
static HashKey |
HashKeyManager.generateHash(HashKey priorHash,
java.lang.String key)
Generates a hash from a prior hash and a string
|
static HashKey |
HashKeyManager.generateHash(java.lang.String key)
Generates a hash from a string
|
Modifier and Type | Method and Description |
---|---|
int |
HashKey.compareTo(HashKey key) |
static HashKey |
HashKeyManager.generateHash(HashKey priorHash,
java.lang.String key)
Generates a hash from a prior hash and a string
|
static byte[] |
HashKey.getHash(HashKey testValue) |