|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.cocoon.monitoring.cache.CacheMonitor
@ManagedResource public class CacheMonitor
JMX MBean to monitor caches.
| Constructor Summary | |
|---|---|
CacheMonitor(Cache cache)
|
|
| Method Summary | |
|---|---|
void |
clear()
Removes all cached data. |
String[] |
listKeys()
List available cache keys |
boolean |
removeKey(String cacheKeyName)
Remove specific key for cache |
String |
size()
Returns size of this cache |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public CacheMonitor(Cache cache)
| Method Detail |
|---|
@ManagedOperation(description="Removes all cached data.") public final void clear()
@ManagedOperation(description="Removes all cached data.") public final String[] listKeys()
@ManagedOperation(description="Remove specific key for cache") public final boolean removeKey(String cacheKeyName)
cacheKeyName - name of CacheKey with should be removed
@ManagedOperation(description="Returns size of this cache") public final String size()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||