|
||||||||||
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(String cacheName)
Frees the specified cache. |
ICacheElement |
get(String cacheName,
Serializable key)
Create a request, process, extract the payload. |
ICacheElement |
get(String cacheName,
Serializable key,
long requesterId)
Create a request, process, extract the payload. |
Set |
getGroupKeys(String cacheName,
String groupName)
Likely not implemented. |
Map |
getMatching(String cacheName,
String pattern)
Gets multiple items from the cache matching the pattern. |
Map |
getMatching(String cacheName,
String pattern,
long requesterId)
Gets multiple items from the cache matching the pattern. |
Map |
getMultiple(String cacheName,
Set keys)
Gets multiple items from the cache based on the given set of keys. |
Map |
getMultiple(String cacheName,
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(String cacheName,
Serializable key)
Removes the given key from the specified cache. |
void |
remove(String cacheName,
Serializable key,
long requesterId)
Removes the given key from the specified cache. |
void |
removeAll(String cacheName)
Remove all keys from the sepcified 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 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 IRemoteHttpCacheClient
attributes
- public ICacheElement get(String cacheName, Serializable key) throws IOException
get
in interface ICacheService
cacheName
- key
-
IOException
public ICacheElement get(String cacheName, Serializable key, long requesterId) throws IOException
get
in interface ICacheServiceNonLocal
cacheName
- key
- requesterId
-
IOException
public Map getMatching(String cacheName, String pattern) throws IOException
getMatching
in interface ICacheService
cacheName
- pattern
-
IOException
public Map getMatching(String cacheName, String pattern, long requesterId) throws IOException
getMatching
in interface ICacheServiceNonLocal
cacheName
- pattern
- requesterId
-
IOException
public Map getMultiple(String cacheName, Set keys) throws IOException
getMultiple
in interface ICacheService
cacheName
- keys
-
IOException
public Map getMultiple(String cacheName, Set keys, long requesterId) throws IOException
getMultiple
in interface ICacheServiceNonLocal
cacheName
- keys
- requesterId
-
IOException
public void remove(String cacheName, Serializable key) throws IOException
remove
in interface ICacheService
cacheName
- key
-
IOException
public void remove(String cacheName, Serializable key, long requesterId) throws IOException
remove
in interface ICacheServiceNonLocal
cacheName
- key
- requesterId
-
IOException
public void removeAll(String cacheName) throws IOException
removeAll
in interface ICacheService
cacheName
-
IOException
public void removeAll(String cacheName, long requesterId) throws IOException
removeAll
in interface ICacheServiceNonLocal
cacheName
- requesterId
-
IOException
public void update(ICacheElement item) throws IOException
update
in interface ICacheService
item
-
IOException
public void update(ICacheElement cacheElement, long requesterId) throws IOException
update
in interface ICacheServiceNonLocal
cacheElement
- requesterId
-
IOException
public void dispose(String cacheName) throws IOException
dispose
in interface ICacheService
cacheName
-
IOException
public void release() throws IOException
release
in interface ICacheService
IOException
public Set getGroupKeys(String cacheName, String groupName) throws IOException
ICacheServiceNonLocal
getGroupKeys
in interface ICacheServiceNonLocal
cacheName
- groupName
-
IOException
public boolean isAlive() throws IOException
isAlive
in interface IRemoteHttpCacheClient
IOException
public 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 |