public class RemoteHttpCacheService extends AbstractRemoteCacheService
For now we assume that all clients are non-cluster clients. And listener notification is not supported.
| Constructor and Description |
|---|
RemoteHttpCacheService(ICompositeCacheManager cacheManager,
RemoteHttpCacheServerAttributes remoteHttpCacheServerAttributes,
ICacheEventLogger cacheEventLogger)
Create a process with a cache manager.
|
| Modifier and Type | Method and Description |
|---|---|
protected java.lang.String |
getExtraInfoForRequesterId(long requesterId)
This is called by the event log.
|
void |
processDispose(java.lang.String cacheName,
long requesterId)
Processes a shutdown request.
|
ICacheElement |
processGet(java.lang.String cacheName,
java.io.Serializable key,
long requesterId)
Processes a get request.
|
java.util.Map |
processGetMatching(java.lang.String cacheName,
java.lang.String pattern,
long requesterId)
Processes a get request.
|
java.util.Map |
processGetMultiple(java.lang.String cacheName,
java.util.Set keys,
long requesterId)
Processes a get request.
|
void |
processRemove(java.lang.String cacheName,
java.io.Serializable key,
long requesterId)
Processes a remove request.
|
void |
processRemoveAll(java.lang.String cacheName,
long requesterId)
Processes a removeAll request.
|
void |
processUpdate(ICacheElement item,
long requesterId)
Processes an update request.
|
void |
release()
This general method should be deprecated.
|
createICacheEvent, createICacheEvent, dispose, dispose, get, get, getCacheManager, getEventLogSourceName, getGroupKeys, getMatching, getMatching, getMultiple, getMultiple, getStats, logApplicationEvent, logICacheEvent, processGetGroupKeys, remove, remove, removeAll, removeAll, setCacheEventLogger, setCacheManager, setEventLogSourceName, update, updatepublic RemoteHttpCacheService(ICompositeCacheManager cacheManager, RemoteHttpCacheServerAttributes remoteHttpCacheServerAttributes, ICacheEventLogger cacheEventLogger)
cacheManager - remoteHttpCacheServerAttributes - cacheEventLogger - public ICacheElement processGet(java.lang.String cacheName, java.io.Serializable key, long requesterId) throws java.io.IOException
If isAllowClusterGet is enabled we will treat this as a normal request or non-remote origins.
cacheName - key - requesterId - java.io.IOExceptionpublic java.util.Map processGetMultiple(java.lang.String cacheName,
java.util.Set keys,
long requesterId)
throws java.io.IOException
If isAllowClusterGet is enabled we will treat this as a normal request of non-remote origination.
cacheName - keys - requesterId - java.io.IOExceptionpublic java.util.Map processGetMatching(java.lang.String cacheName,
java.lang.String pattern,
long requesterId)
throws java.io.IOException
If isAllowClusterGet is enabled we will treat this as a normal request of non-remote origination.
cacheName - pattern - requesterId - java.io.IOExceptionpublic void processUpdate(ICacheElement item, long requesterId) throws java.io.IOException
If isLocalClusterConsistency is enabled we will treat this as a normal request of non-remote origination.
item - requesterId - java.io.IOExceptionpublic void processRemove(java.lang.String cacheName,
java.io.Serializable key,
long requesterId)
throws java.io.IOException
If isLocalClusterConsistency is enabled we will treat this as a normal request of non-remote origination.
cacheName - key - requesterId - java.io.IOExceptionpublic void processRemoveAll(java.lang.String cacheName,
long requesterId)
throws java.io.IOException
If isLocalClusterConsistency is enabled we will treat this as a normal request of non-remote origination.
cacheName - requesterId - java.io.IOExceptionpublic void processDispose(java.lang.String cacheName,
long requesterId)
throws java.io.IOException
cacheName - requesterId - java.io.IOExceptionpublic void release()
throws java.io.IOException
java.io.IOExceptionprotected java.lang.String getExtraInfoForRequesterId(long requesterId)
getExtraInfoForRequesterId in class AbstractRemoteCacheServicerequesterId - Copyright © 2002-2013 Apache Software Foundation. All Rights Reserved.