|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcs.auxiliary.remote.http.client.RemoteHttpCacheClient
public class RemoteHttpCacheClient
This is the service used by the remote http auxiliary cache.
| Constructor Summary | |
|---|---|
RemoteHttpCacheClient()
For factory construction. |
|
RemoteHttpCacheClient(RemoteHttpCacheAttributes attributes)
Constructs a client. |
|
| Method Summary | |
|---|---|
void |
dispose(java.lang.String cacheName)
Frees the specified cache. |
ICacheElement |
get(java.lang.String cacheName,
java.io.Serializable key)
Create a request, process, extract the payload. |
ICacheElement |
get(java.lang.String cacheName,
java.io.Serializable key,
long requesterId)
Create a request, process, extract the payload. |
java.util.Set |
getGroupKeys(java.lang.String cacheName,
java.lang.String groupName)
|
java.util.Map |
getMatching(java.lang.String cacheName,
java.lang.String pattern)
Gets multiple items from the cache matching the pattern. |
java.util.Map |
getMatching(java.lang.String cacheName,
java.lang.String pattern,
long requesterId)
Gets multiple items from the cache matching the pattern. |
java.util.Map |
getMultiple(java.lang.String cacheName,
java.util.Set keys)
Gets multiple items from the cache based on the given set of keys. |
java.util.Map |
getMultiple(java.lang.String cacheName,
java.util.Set keys,
long requesterId)
Gets multiple items from the cache based on the given set of keys. |
IRemoteCacheDispatcher |
getRemoteDispatcher()
|
RemoteHttpCacheAttributes |
getRemoteHttpCacheAttributes()
|
void |
initialize(RemoteHttpCacheAttributes attributes)
The provides an extension point. |
boolean |
isAlive()
Make and alive request. |
protected boolean |
isInitialized()
|
void |
release()
Frees the specified cache. |
void |
remove(java.lang.String cacheName,
java.io.Serializable key)
Removes the given key from the specified cache. |
void |
remove(java.lang.String cacheName,
java.io.Serializable key,
long requesterId)
Removes the given key from the specified cache. |
void |
removeAll(java.lang.String cacheName)
Remove all keys from the sepcified cache. |
void |
removeAll(java.lang.String cacheName,
long requesterId)
Remove all keys from the sepcified cache. |
protected void |
setInitialized(boolean initialized)
|
void |
setRemoteDispatcher(IRemoteCacheDispatcher remoteDispatcher)
|
void |
setRemoteHttpCacheAttributes(RemoteHttpCacheAttributes remoteHttpCacheAttributes)
|
void |
update(ICacheElement item)
Puts a cache item to the cache. |
void |
update(ICacheElement cacheElement,
long requesterId)
Puts a cache item to the cache. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public RemoteHttpCacheClient()
public RemoteHttpCacheClient(RemoteHttpCacheAttributes attributes)
attributes - | Method Detail |
|---|
public void initialize(RemoteHttpCacheAttributes attributes)
initialize in interface IRemoteHttpCacheClientattributes -
public ICacheElement get(java.lang.String cacheName,
java.io.Serializable key)
throws java.io.IOException
get in interface ICacheServicecacheName - key -
java.io.IOException
public ICacheElement get(java.lang.String cacheName,
java.io.Serializable key,
long requesterId)
throws java.io.IOException
get in interface IRemoteCacheServicecacheName - key - requesterId -
java.io.IOException
public java.util.Map getMatching(java.lang.String cacheName,
java.lang.String pattern)
throws java.io.IOException
getMatching in interface ICacheServicecacheName - pattern -
java.io.IOException
public java.util.Map getMatching(java.lang.String cacheName,
java.lang.String pattern,
long requesterId)
throws java.io.IOException
getMatching in interface IRemoteCacheServicecacheName - pattern - requesterId -
java.io.IOException
public java.util.Map getMultiple(java.lang.String cacheName,
java.util.Set keys)
throws java.io.IOException
getMultiple in interface ICacheServicecacheName - keys -
java.io.IOException
public java.util.Map getMultiple(java.lang.String cacheName,
java.util.Set keys,
long requesterId)
throws java.io.IOException
getMultiple in interface IRemoteCacheServicecacheName - keys - requesterId -
java.io.IOException
public void remove(java.lang.String cacheName,
java.io.Serializable key)
throws java.io.IOException
remove in interface ICacheServicecacheName - key -
java.io.IOException
public void remove(java.lang.String cacheName,
java.io.Serializable key,
long requesterId)
throws java.io.IOException
remove in interface IRemoteCacheServicecacheName - key - requesterId -
java.io.IOException
public void removeAll(java.lang.String cacheName)
throws java.io.IOException
removeAll in interface ICacheServicecacheName -
java.io.IOException
public void removeAll(java.lang.String cacheName,
long requesterId)
throws java.io.IOException
removeAll in interface IRemoteCacheServicecacheName - requesterId -
java.io.IOException
public void update(ICacheElement item)
throws java.io.IOException
update in interface ICacheServiceitem -
java.io.IOException
public void update(ICacheElement cacheElement,
long requesterId)
throws java.io.IOException
update in interface IRemoteCacheServicecacheElement - requesterId -
java.io.IOException
public void dispose(java.lang.String cacheName)
throws java.io.IOException
dispose in interface ICacheServicecacheName -
java.io.IOException
public void release()
throws java.io.IOException
release in interface ICacheServicejava.io.IOException
public java.util.Set getGroupKeys(java.lang.String cacheName,
java.lang.String groupName)
throws java.io.IOException
getGroupKeys in interface IRemoteCacheServicecacheName - groupName -
java.io.IOException
java.rmi.RemoteException
public boolean isAlive()
throws java.io.IOException
isAlive in interface IRemoteHttpCacheClientjava.io.IOExceptionpublic void setRemoteDispatcher(IRemoteCacheDispatcher remoteDispatcher)
remoteDispatcher - the remoteDispatcher to setpublic IRemoteCacheDispatcher getRemoteDispatcher()
public void setRemoteHttpCacheAttributes(RemoteHttpCacheAttributes remoteHttpCacheAttributes)
remoteHttpCacheAttributes - the remoteHttpCacheAttributes to setpublic RemoteHttpCacheAttributes getRemoteHttpCacheAttributes()
protected void setInitialized(boolean initialized)
initialized - the initialized to setprotected boolean isInitialized()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||