Class RemoteHttpCacheService<K,V> 
java.lang.Object
org.apache.commons.jcs3.auxiliary.remote.http.server.AbstractRemoteCacheService<K,V>
 
org.apache.commons.jcs3.auxiliary.remote.http.server.RemoteHttpCacheService<K,V> 
- All Implemented Interfaces:
- Remote,- ICacheService<K,,- V> - ICacheServiceNonLocal<K,- V> 
This does the work. It's called by the processor. The base class wraps the processing calls in
 event logs, if an event logger is present.
 
For now we assume that all clients are non-cluster clients. And listener notification is not supported.
- 
Constructor SummaryConstructorsConstructorDescriptionRemoteHttpCacheService(ICompositeCacheManager cacheManager, RemoteHttpCacheServerAttributes remoteHttpCacheServerAttributes, ICacheEventLogger cacheEventLogger) Create a process with a cache manager.
- 
Method SummaryModifier and TypeMethodDescriptionprotected StringgetExtraInfoForRequesterId(long requesterId) This is called by the event log.voidprocessDispose(String cacheName, long requesterId) Processes a shutdown request.processGet(String cacheName, K key, long requesterId) Processes a get request.Map<K,ICacheElement<K, V>> processGetMatching(String cacheName, String pattern, long requesterId) Processes a get request.Map<K,ICacheElement<K, V>> processGetMultiple(String cacheName, Set<K> keys, long requesterId) Processes a get request.voidprocessRemove(String cacheName, K key, long requesterId) Processes a remove request.voidprocessRemoveAll(String cacheName, long requesterId) Processes a removeAll request.voidprocessUpdate(ICacheElement<K, V> item, long requesterId) Processes an update request.voidrelease()This general method should be deprecated.Methods inherited from class org.apache.commons.jcs3.auxiliary.remote.http.server.AbstractRemoteCacheServicecreateICacheEvent, createICacheEvent, dispose, dispose, get, get, getCacheManager, getEventLogSourceName, getKeySet, getMatching, getMatching, getMultiple, getMultiple, getStats, logApplicationEvent, logICacheEvent, processGetKeySet, remove, remove, removeAll, removeAll, setCacheEventLogger, setCacheManager, setEventLogSourceName, update, update
- 
Constructor Details- 
RemoteHttpCacheServicepublic RemoteHttpCacheService(ICompositeCacheManager cacheManager, RemoteHttpCacheServerAttributes remoteHttpCacheServerAttributes, ICacheEventLogger cacheEventLogger) Create a process with a cache manager.- Parameters:
- cacheManager-
- remoteHttpCacheServerAttributes-
- cacheEventLogger-
 
 
- 
- 
Method Details- 
processGetProcesses a get request.If isAllowClusterGet is enabled we will treat this as a normal request or non-remote origins. - Parameters:
- cacheName-
- key-
- requesterId-
- Returns:
- ICacheElement
- Throws:
- IOException
 
- 
processGetMultiplepublic Map<K,ICacheElement<K, processGetMultipleV>> (String cacheName, Set<K> keys, long requesterId) throws IOException Processes a get request.If isAllowClusterGet is enabled we will treat this as a normal request of non-remote origination. - Parameters:
- cacheName-
- keys-
- requesterId-
- Returns:
- Map
- Throws:
- IOException
 
- 
processGetMatchingpublic Map<K,ICacheElement<K, processGetMatchingV>> (String cacheName, String pattern, long requesterId) throws IOException Processes a get request.If isAllowClusterGet is enabled we will treat this as a normal request of non-remote origination. - Parameters:
- cacheName-
- pattern-
- requesterId-
- Returns:
- Map
- Throws:
- IOException
 
- 
processUpdateProcesses an update request.If isLocalClusterConsistency is enabled we will treat this as a normal request of non-remote origination. - Parameters:
- item-
- requesterId-
- Throws:
- IOException
 
- 
processRemoveProcesses a remove request.If isLocalClusterConsistency is enabled we will treat this as a normal request of non-remote origination. - Parameters:
- cacheName-
- key-
- requesterId-
- Throws:
- IOException
 
- 
processRemoveAllProcesses a removeAll request.If isLocalClusterConsistency is enabled we will treat this as a normal request of non-remote origination. - Parameters:
- cacheName-
- requesterId-
- Throws:
- IOException
 
- 
processDisposeProcesses a shutdown request.- Parameters:
- cacheName-
- requesterId-
- Throws:
- IOException
 
- 
releaseThis general method should be deprecated.- Throws:
- IOException
 
- 
getExtraInfoForRequesterIdThis is called by the event log.- Specified by:
- getExtraInfoForRequesterIdin class- AbstractRemoteCacheService<K,- V> 
- Parameters:
- requesterId-
- Returns:
- requesterId + ""
 
 
-