|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.xaj.core.EhcacheManagerBean
@ManagedResource(description="Ehcache manager", objectName="xaj:name=ehcacheManager") public class EhcacheManagerBean
Management bean for Ehcache, designed as a JMX bean.
The configurable properties of this class are:
CacheManager
to manage.
Constructor Summary | |
---|---|
EhcacheManagerBean()
Default constructor. |
|
EhcacheManagerBean(net.sf.ehcache.CacheManager cacheManager)
Construct with a CacheManager. |
Method Summary | |
---|---|
void |
clearCache(java.lang.String cacheName)
Clear all items from a specific cache. |
net.sf.ehcache.CacheManager |
getCacheManager()
|
java.lang.String[] |
getCacheNames()
Get the list of configured caches. |
void |
setCacheManager(net.sf.ehcache.CacheManager cacheManager)
|
java.lang.String |
viewAllCacheInfo(boolean html)
View information about all configured caches. |
java.lang.String |
viewCacheInfo(java.lang.String cacheName,
boolean html)
View information about an individual cache. |
java.lang.String |
viewCacheInfoDetailed(java.lang.String cacheName,
boolean html)
View detailed information about an individual cache. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public EhcacheManagerBean()
public EhcacheManagerBean(net.sf.ehcache.CacheManager cacheManager)
cacheManager
- the CacheManagerMethod Detail |
---|
@ManagedAttribute(description="List of configured caches") public java.lang.String[] getCacheNames()
@ManagedOperation(description="View information about a specific cache") @ManagedOperationParameters(value={,}) public java.lang.String viewCacheInfo(java.lang.String cacheName, boolean html)
cacheName
- the cache to inspecthtml
- if true return an HTML fragment, otherwise plain text
@ManagedOperation(description="View detailed information about a specific cache") @ManagedOperationParameters(value={,}) public java.lang.String viewCacheInfoDetailed(java.lang.String cacheName, boolean html)
cacheName
- the cache to inspecthtml
- if true return an HTML fragment, otherwise plain text
@ManagedOperation(description="Clear all items from a specific cache") @ManagedOperationParameters(value=) public void clearCache(java.lang.String cacheName)
cacheName
- the cache to clear@ManagedOperation(description="View information about all caches") @ManagedOperationParameters(value=) public java.lang.String viewAllCacheInfo(boolean html)
html
- if true return an HTML fragment, otherwise plain text
public net.sf.ehcache.CacheManager getCacheManager()
public void setCacheManager(net.sf.ehcache.CacheManager cacheManager)
cacheManager
- the cacheManager to set
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |