|
||||||||||
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
org.apache.jcs.auxiliary.remote.http.server.RemoteHttpCacheService
public class RemoteHttpCacheService
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 |
processGet(String cacheName,
Serializable key,
long requesterId)
Processes a get request. |
Map |
processGetMatching(String cacheName,
String pattern,
long requesterId)
Processes a get request. |
Map |
processGetMultiple(String cacheName,
Set keys,
long requesterId)
Processes a get request. |
void |
processRemove(String cacheName,
Serializable key,
long requesterId)
Processes a remove request. |
void |
processRemoveAll(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. |
Methods inherited from class org.apache.jcs.auxiliary.remote.http.server.AbstractRemoteCacheService |
---|
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, 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 processGet(String cacheName, Serializable 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 processGetMultiple(String cacheName, Set 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 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 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, Serializable 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
IOException
protected String getExtraInfoForRequesterId(long requesterId)
getExtraInfoForRequesterId
in class AbstractRemoteCacheService
requesterId
-
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |