|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcs.auxiliary.remote.http.server.AbstractRemoteCacheService<K,V>
org.apache.jcs.auxiliary.remote.http.server.RemoteHttpCacheService<K,V>
public class RemoteHttpCacheService<K extends Serializable,V extends Serializable>
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 Summary | |
|---|---|
RemoteHttpCacheService(ICompositeCacheManager cacheManager,
RemoteHttpCacheServerAttributes remoteHttpCacheServerAttributes,
ICacheEventLogger cacheEventLogger)
Create a process with a cache manager. |
|
| Method Summary | |
|---|---|
protected String |
getExtraInfoForRequesterId(long requesterId)
This is called by the event log. |
void |
processDispose(String cacheName,
long requesterId)
Processes a shutdown request. |
ICacheElement<K,V> |
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. |
void |
processRemove(String cacheName,
K key,
long requesterId)
Processes a remove request. |
void |
processRemoveAll(String cacheName,
long requesterId)
Processes a removeAll request. |
void |
processUpdate(ICacheElement<K,V> item,
long requesterId)
Processes an update request. |
void |
release()
This general method should be deprecated. |
| Methods inherited from class org.apache.jcs.auxiliary.remote.http.server.AbstractRemoteCacheService |
|---|
createICacheEvent, createICacheEvent, dispose, dispose, get, get, getCacheManager, getEventLogSourceName, getGroupKeys, getGroupNames, getMatching, getMatching, getMultiple, getMultiple, getStats, logApplicationEvent, logICacheEvent, processGetGroupKeys, processGetGroupNames, remove, remove, removeAll, removeAll, setCacheEventLogger, setCacheManager, setEventLogSourceName, update, update |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteHttpCacheService(ICompositeCacheManager cacheManager,
RemoteHttpCacheServerAttributes remoteHttpCacheServerAttributes,
ICacheEventLogger cacheEventLogger)
cacheManager - remoteHttpCacheServerAttributes - cacheEventLogger - | Method Detail |
|---|
public ICacheElement<K,V> processGet(String cacheName,
K key,
long requesterId)
throws IOException
If isAllowClusterGet is enabled we will treat this as a normal request or non-remote origins.
cacheName - key - requesterId -
IOException
public Map<K,ICacheElement<K,V>> processGetMultiple(String cacheName,
Set<K> keys,
long requesterId)
throws IOException
If isAllowClusterGet is enabled we will treat this as a normal request of non-remote origination.
cacheName - keys - requesterId -
IOException
public Map<K,ICacheElement<K,V>> processGetMatching(String cacheName,
String pattern,
long requesterId)
throws IOException
If isAllowClusterGet is enabled we will treat this as a normal request of non-remote origination.
cacheName - pattern - requesterId -
IOException
public void processUpdate(ICacheElement<K,V> item,
long requesterId)
throws IOException
If isLocalClusterConsistency is enabled we will treat this as a normal request of non-remote origination.
item - requesterId -
IOException
public void processRemove(String cacheName,
K key,
long requesterId)
throws IOException
If isLocalClusterConsistency is enabled we will treat this as a normal request of non-remote origination.
cacheName - key - requesterId -
IOException
public void processRemoveAll(String cacheName,
long requesterId)
throws IOException
If isLocalClusterConsistency is enabled we will treat this as a normal request of non-remote origination.
cacheName - requesterId -
IOException
public void processDispose(String cacheName,
long requesterId)
throws IOException
cacheName - requesterId -
IOException
public void release()
throws IOException
IOExceptionprotected String getExtraInfoForRequesterId(long requesterId)
getExtraInfoForRequesterId in class AbstractRemoteCacheService<K extends Serializable,V extends Serializable>requesterId -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||