public class CacheMnodeActor extends java.lang.Object implements ClusterServerListener, CacheMnodeLocalProxy
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
UID |
| Modifier and Type | Method and Description |
|---|---|
void |
compareAndPut(byte[] keyHash,
byte[] cacheHash,
long testValue,
MnodeUpdate mnodeUpdate,
long valueDataId,
long valueDataTime,
ReplyCallback<java.lang.Boolean> cb) |
CacheUpdateWithSource |
get(byte[] key,
byte[] cacheKey,
long version,
int server,
CacheConfig config) |
protected java.lang.String |
getAddress() |
java.io.InputStream |
getAndPut(DistCacheEntry entry,
MnodeUpdate mnodeUpdate,
long valueDataId,
long valueDataTime) |
void |
getBackground(DistCacheEntry entry,
MnodeValue mnodeValue) |
protected LocalStoreManager |
getLocalCacheManager() |
protected ProxyActor<CacheMnodeActor> |
getProxyActor() |
CacheUpdateWithSource |
localGet(byte[] key,
byte[] cacheKey,
long requestVersion,
int requestLeaseOwner)
CacheGet requests cache data
|
protected void |
localNotifyLeaseChange(HashKey key,
HashKey cacheKey,
TriadOwner keyOwner,
int leaseOwner)
Notify the lease owner of a change in the value.
|
MnodeUpdate |
localPut(byte[] keyHash,
byte[] cacheHash,
MnodeUpdate update,
StreamSource source)
localPut updates the local copy based on a CachePut message
|
void |
notifyLease(byte[] keyHash,
byte[] cacheHash,
int leaseOwner) |
void |
notifyLeaseOwner(byte[] keyHash,
byte[] cacheHash)
notify the lease owner of an update
|
void |
put(byte[] keyHash,
byte[] cacheHash,
MnodeUpdate mnodeUpdate,
StreamSource dataSource) |
void |
serverStart(ClusterServer server)
Called when a server starts.
|
void |
serverStop(ClusterServer server)
Called when a server stops.
|
protected void |
start() |
java.lang.String |
toString() |
protected boolean |
triadCompareAndPut(byte[] keyHash,
byte[] cacheHash,
long testHash,
MnodeUpdate update,
StreamSource source) |
protected CacheUpdateWithSource |
triadGetAndPut(byte[] keyHash,
byte[] cacheHash,
MnodeUpdate update,
StreamSource source) |
protected void |
updateLease(DistCacheEntry entryKey,
MnodeEntry mnodeValue,
int leaseServer) |
void |
updateTime(HashKey key,
HashKey cacheKey,
MnodeEntry mnodeValue)
Updates the time for a cache map entry
|
protected ProxyActor<CacheMnodeActor> getProxyActor()
protected java.lang.String getAddress()
protected LocalStoreManager getLocalCacheManager()
protected void start()
public void serverStart(ClusterServer server)
serverStart in interface ClusterServerListenerpublic void serverStop(ClusterServer server)
serverStop in interface ClusterServerListenerpublic CacheUpdateWithSource get(byte[] key, byte[] cacheKey, long version, int server, CacheConfig config)
get in interface CacheMnodeLocalProxypublic void getBackground(DistCacheEntry entry, MnodeValue mnodeValue)
getBackground in interface CacheMnodeLocalProxypublic CacheUpdateWithSource localGet(byte[] key, byte[] cacheKey, long requestVersion, int requestLeaseOwner)
protected void updateLease(DistCacheEntry entryKey, MnodeEntry mnodeValue, int leaseServer)
public void put(byte[] keyHash,
byte[] cacheHash,
MnodeUpdate mnodeUpdate,
StreamSource dataSource)
put in interface CacheMnodeLocalProxypublic MnodeUpdate localPut(byte[] keyHash, byte[] cacheHash, MnodeUpdate update, StreamSource source)
localPut in interface CacheMnodeLocalProxypublic void compareAndPut(byte[] keyHash,
byte[] cacheHash,
long testValue,
MnodeUpdate mnodeUpdate,
long valueDataId,
long valueDataTime,
ReplyCallback<java.lang.Boolean> cb)
compareAndPut in interface CacheMnodeLocalProxypublic java.io.InputStream getAndPut(DistCacheEntry entry, MnodeUpdate mnodeUpdate, long valueDataId, long valueDataTime)
getAndPut in interface CacheMnodeLocalProxyprotected CacheUpdateWithSource triadGetAndPut(byte[] keyHash, byte[] cacheHash, MnodeUpdate update, StreamSource source)
protected boolean triadCompareAndPut(byte[] keyHash,
byte[] cacheHash,
long testHash,
MnodeUpdate update,
StreamSource source)
public void updateTime(HashKey key, HashKey cacheKey, MnodeEntry mnodeValue)
updateTime in interface CacheMnodeLocalProxyprotected void localNotifyLeaseChange(HashKey key, HashKey cacheKey, TriadOwner keyOwner, int leaseOwner)
public void notifyLease(byte[] keyHash,
byte[] cacheHash,
int leaseOwner)
notifyLease in interface CacheMnodeLocalProxypublic void notifyLeaseOwner(byte[] keyHash,
byte[] cacheHash)
public java.lang.String toString()
toString in class java.lang.Object