|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object info.magnolia.module.cache.mbean.CacheMonitor
public class CacheMonitor
MBean
implementation for the cache status.
Constructor Summary | |
---|---|
CacheMonitor()
|
Method Summary | |
---|---|
void |
addCache(String name)
|
void |
countFlush(String name)
|
void |
countStart()
|
void |
flushAll()
Will flush all entries from all configured caches. |
void |
flushByUUID(String repository,
String uuid)
Will flush all entries with key bound to given uuid from all configured caches. |
Map<String,Integer> |
getAll()
|
int |
getBypasses()
Gets number of times since the last server restart the caching policy decided to bypass cache and serve request out of repository (i.e. |
int |
getCachedKeysCount()
Gets number of entries in all known caches even if those entries have been generated from content with same uuid (e.g. |
int |
getCachedUUIDsCount()
Gets number of content uuids that are held in all known caches. |
Map<String,Integer> |
getDomainAccesses()
Gets number of times the requests have been served for each configured domain since the last server restart. |
Map<String,Integer> |
getFlushes()
Gets number of times each configured cache have been flushed since the last server restart. |
int |
getHits()
Gets number of times since the last server restart the cache found and served the entry requested by client. |
static CacheMonitor |
getInstance()
|
int |
getPuts()
Gets number of times since the last server restart the cached entry for the request didn't exist and was put in the cache. |
int |
getStartCalls()
Gets number of times Cache Module was started since the last server restart. |
int |
getStopCalls()
Gets number of times Cache Module was stopped since the last server restart. |
void |
logAccess(Object cacheKey)
|
void |
logBehavior(String name)
|
void |
stop()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CacheMonitor()
Method Detail |
---|
public static CacheMonitor getInstance()
public void countStart()
public void stop()
public void logBehavior(String name)
name
- public void countFlush(String name)
public void addCache(String name)
public void logAccess(Object cacheKey)
public void flushAll() throws Exception
CacheMonitorMBean
flushAll
in interface CacheMonitorMBean
Exception
public void flushByUUID(String repository, String uuid) throws Exception
CacheMonitorMBean
flushByUUID
in interface CacheMonitorMBean
Exception
public Map<String,Integer> getAll()
getAll
in interface CacheMonitorMBean
public int getHits()
CacheMonitorMBean
getHits
in interface CacheMonitorMBean
public int getBypasses()
CacheMonitorMBean
getBypasses
in interface CacheMonitorMBean
public int getPuts()
CacheMonitorMBean
getPuts
in interface CacheMonitorMBean
public int getStopCalls()
CacheMonitorMBean
getStopCalls
in interface CacheMonitorMBean
public int getStartCalls()
CacheMonitorMBean
getStartCalls
in interface CacheMonitorMBean
public Map<String,Integer> getFlushes()
CacheMonitorMBean
getFlushes
in interface CacheMonitorMBean
public Map<String,Integer> getDomainAccesses()
CacheMonitorMBean
getDomainAccesses
in interface CacheMonitorMBean
public int getCachedKeysCount()
CacheMonitorMBean
getCachedKeysCount
in interface CacheMonitorMBean
public int getCachedUUIDsCount()
CacheMonitorMBean
getCachedUUIDsCount
in interface CacheMonitorMBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |