|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jcs.admin.JCSAdminBean
public class JCSAdminBean
A servlet which provides HTTP access to JCS. Allows a summary of regions to be viewed, and removeAll to be run on individual regions or all regions. Also provides the ability to remove items (any number of key arguments can be provided with action 'remove'). Should be initialized with a properties file that provides at least a classpath resource loader.
| Constructor Summary | |
|---|---|
JCSAdminBean()
Default constructor |
|
| Method Summary | ||
|---|---|---|
LinkedList<CacheRegionInfo> |
buildCacheInfo()
Builds up data on every region. |
|
LinkedList<CacheElementInfo> |
buildElementInfo(String cacheName)
Builds up info about each element in a region. |
|
void |
clearAllRegions()
Clears all regions in the cache. |
|
void |
clearRegion(String cacheName)
Clears a particular cache region. |
|
|
getByteCount(CompositeCache<K,V> cache)
Tries to estimate how much data is in a region. |
|
void |
removeItem(String cacheName,
String key)
Removes a particular item from a particular region. |
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JCSAdminBean()
| Method Detail |
|---|
public LinkedList<CacheElementInfo> buildElementInfo(String cacheName)
throws Exception
cacheName -
Exception
public LinkedList<CacheRegionInfo> buildCacheInfo()
throws Exception
Exceptionpublic <K extends Serializable,V extends Serializable> int getByteCount(CompositeCache<K,V> cache)
public void clearAllRegions()
throws IOException
RemoteCacheServer
API, so that removes will be broadcast to client machines. Otherwise clears all regions in the cache directly via
the usual cache API.
IOException
public void clearRegion(String cacheName)
throws IOException
RemoteCacheServer
API, so that removes will be broadcast to client machines. Otherwise clears the region directly via the usual
cache API.
IOException
public void removeItem(String cacheName,
String key)
throws IOException
RemoteCacheServer
API, so that removes will be broadcast to client machines. Otherwise clears the region directly via the usual
cache API.
cacheName - key -
IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||