|
||||||||||
| 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<K,V>
public class RemoteHttpCacheClient<K extends Serializable,V extends Serializable>
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(String cacheName)
Frees the specified cache. |
ICacheElement<K,V> |
get(String cacheName,
K key)
Create a request, process, extract the payload. |
ICacheElement<K,V> |
get(String cacheName,
K key,
long requesterId)
Create a request, process, extract the payload. |
Set<K> |
getGroupKeys(String cacheName,
String groupName)
Gets the set of keys of objects currently in the group. |
Set<String> |
getGroupNames(String cacheName)
Gets the set of group names in the cache |
Map<K,ICacheElement<K,V>> |
getMatching(String cacheName,
String pattern)
Gets multiple items from the cache matching the pattern. |
Map<K,ICacheElement<K,V>> |
getMatching(String cacheName,
String pattern,
long requesterId)
Gets multiple items from the cache matching the pattern. |
Map<K,ICacheElement<K,V>> |
getMultiple(String cacheName,
Set<K> keys)
Gets multiple items from the cache based on the given set of keys. |
Map<K,ICacheElement<K,V>> |
getMultiple(String cacheName,
Set<K> 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(String cacheName,
K key)
Removes the given key from the specified cache. |
void |
remove(String cacheName,
K key,
long requesterId)
Removes the given key from the specified cache. |
void |
removeAll(String cacheName)
Remove all keys from the specified cache. |
void |
removeAll(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<K,V> item)
Puts a cache item to the cache. |
void |
update(ICacheElement<K,V> 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 IRemoteHttpCacheClient<K extends Serializable,V extends Serializable>attributes -
public ICacheElement<K,V> get(String cacheName,
K key)
throws IOException
get in interface ICacheService<K extends Serializable,V extends Serializable>cacheName - key -
IOException
public ICacheElement<K,V> get(String cacheName,
K key,
long requesterId)
throws IOException
get in interface ICacheServiceNonLocal<K extends Serializable,V extends Serializable>cacheName - key - requesterId -
IOException
public Map<K,ICacheElement<K,V>> getMatching(String cacheName,
String pattern)
throws IOException
getMatching in interface ICacheService<K extends Serializable,V extends Serializable>cacheName - pattern -
IOException
public Map<K,ICacheElement<K,V>> getMatching(String cacheName,
String pattern,
long requesterId)
throws IOException
getMatching in interface ICacheServiceNonLocal<K extends Serializable,V extends Serializable>cacheName - pattern - requesterId -
IOException
public Map<K,ICacheElement<K,V>> getMultiple(String cacheName,
Set<K> keys)
throws IOException
getMultiple in interface ICacheService<K extends Serializable,V extends Serializable>cacheName - keys -
IOException
public Map<K,ICacheElement<K,V>> getMultiple(String cacheName,
Set<K> keys,
long requesterId)
throws IOException
getMultiple in interface ICacheServiceNonLocal<K extends Serializable,V extends Serializable>cacheName - keys - requesterId -
IOException
public void remove(String cacheName,
K key)
throws IOException
remove in interface ICacheService<K extends Serializable,V extends Serializable>cacheName - key -
IOException
public void remove(String cacheName,
K key,
long requesterId)
throws IOException
remove in interface ICacheServiceNonLocal<K extends Serializable,V extends Serializable>cacheName - key - requesterId -
IOException
public void removeAll(String cacheName)
throws IOException
removeAll in interface ICacheService<K extends Serializable,V extends Serializable>cacheName -
IOException
public void removeAll(String cacheName,
long requesterId)
throws IOException
removeAll in interface ICacheServiceNonLocal<K extends Serializable,V extends Serializable>cacheName - requesterId -
IOException
public void update(ICacheElement<K,V> item)
throws IOException
update in interface ICacheService<K extends Serializable,V extends Serializable>item -
IOException
public void update(ICacheElement<K,V> cacheElement,
long requesterId)
throws IOException
update in interface ICacheServiceNonLocal<K extends Serializable,V extends Serializable>cacheElement - requesterId -
IOException
public void dispose(String cacheName)
throws IOException
dispose in interface ICacheService<K extends Serializable,V extends Serializable>cacheName -
IOException
public void release()
throws IOException
release in interface ICacheService<K extends Serializable,V extends Serializable>IOException
public Set<K> getGroupKeys(String cacheName,
String groupName)
throws IOException
getGroupKeys in interface ICacheServiceNonLocal<K extends Serializable,V extends Serializable>cacheName - the name of the cachegroupName - the name of the group
IOException
public Set<String> getGroupNames(String cacheName)
throws IOException
getGroupNames in interface ICacheServiceNonLocal<K extends Serializable,V extends Serializable>cacheName - the name of the cache
IOException
public boolean isAlive()
throws IOException
isAlive in interface IRemoteHttpCacheClient<K extends Serializable,V extends Serializable>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 | |||||||||