|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.caucho.distcache.cluster.ClusterCacheEngine
public final class ClusterCacheEngine
Manages the distributed cache
| Constructor Summary | |
|---|---|
ClusterCacheEngine(CacheStoreManager cacheService)
|
|
| Method Summary | |
|---|---|
HashKey |
compareAndPut(DistCacheEntry entry,
HashKey testValue,
MnodeUpdate mnodeUpdate,
java.lang.Object value,
CacheConfig config)
|
protected StreamSource |
createDataSource(HashKey valueKey)
|
MnodeEntry |
get(DistCacheEntry entry,
CacheConfig config)
|
HashKey |
getAndPut(DistCacheEntry entry,
MnodeUpdate mnodeUpdate,
java.lang.Object value,
long leaseTimeout,
int leaseOwner)
Sets a cache entry |
int |
getSelfIndex()
Returns the self index |
void |
initCache(CacheImpl cache)
|
protected boolean |
isDataAvailable(HashKey valueKey)
|
boolean |
isLocalExpired(CacheConfig config,
HashKey key,
MnodeEntry mnodeEntry,
long now)
|
protected void |
loadClusterDataBackground(HashKey valueKey,
int flags)
|
boolean |
loadData(HashKey valueKey,
int flags)
|
void |
put(HashKey key,
MnodeUpdate mnodeUpdate,
MnodeEntry mnodeValue)
|
protected void |
putData(HashKey valueKey,
StreamSource dataSource)
|
protected void |
putReplication(CachePut put)
|
void |
remove(HashKey key,
MnodeUpdate mnodeUpdate,
MnodeEntry mnodeEntry)
|
void |
start()
Starts the service |
void |
updateTime(HashKey key,
MnodeEntry mnodeValue)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ClusterCacheEngine(CacheStoreManager cacheService)
| Method Detail |
|---|
public void start()
CacheEngine
start in interface CacheEnginepublic int getSelfIndex()
public void initCache(CacheImpl cache)
initCache in interface CacheEngine
public boolean isLocalExpired(CacheConfig config,
HashKey key,
MnodeEntry mnodeEntry,
long now)
isLocalExpired in interface CacheEngineprotected boolean isDataAvailable(HashKey valueKey)
public boolean loadData(HashKey valueKey,
int flags)
loadData in interface CacheEngine
protected void loadClusterDataBackground(HashKey valueKey,
int flags)
public MnodeEntry get(DistCacheEntry entry,
CacheConfig config)
get in interface CacheEngine
protected void putData(HashKey valueKey,
StreamSource dataSource)
public void updateTime(HashKey key,
MnodeEntry mnodeValue)
updateTime in interface CacheEngine
public void put(HashKey key,
MnodeUpdate mnodeUpdate,
MnodeEntry mnodeValue)
put in interface CacheEngine
public void remove(HashKey key,
MnodeUpdate mnodeUpdate,
MnodeEntry mnodeEntry)
remove in interface CacheEngine
public HashKey getAndPut(DistCacheEntry entry,
MnodeUpdate mnodeUpdate,
java.lang.Object value,
long leaseTimeout,
int leaseOwner)
getAndPut in interface CacheEngine
public HashKey compareAndPut(DistCacheEntry entry,
HashKey testValue,
MnodeUpdate mnodeUpdate,
java.lang.Object value,
CacheConfig config)
compareAndPut in interface CacheEngineprotected StreamSource createDataSource(HashKey valueKey)
protected void putReplication(CachePut put)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||