|
||||||||||
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(java.lang.String name)
|
void |
countFlush(java.lang.String name)
|
void |
countStart()
|
void |
flushAll()
Will flush all entries from all configured caches. |
void |
flushByUUID(java.lang.String repository,
java.lang.String uuid)
Will flush all entries with key bound to given uuid from all configured caches. |
java.util.Map<java.lang.String,java.lang.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. |
java.util.Map<java.lang.String,java.lang.Integer> |
getDomainAccesses()
Gets number of times the requests have been served for each configured domain since the last server restart. |
java.util.Map<java.lang.String,java.lang.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(java.lang.Object cacheKey)
|
void |
logBehavior(java.lang.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(java.lang.String name)
name
- public void countFlush(java.lang.String name)
public void addCache(java.lang.String name)
public void logAccess(java.lang.Object cacheKey)
public void flushAll() throws java.lang.Exception
CacheMonitorMBean
flushAll
in interface CacheMonitorMBean
java.lang.Exception
public void flushByUUID(java.lang.String repository, java.lang.String uuid) throws java.lang.Exception
CacheMonitorMBean
flushByUUID
in interface CacheMonitorMBean
java.lang.Exception
public java.util.Map<java.lang.String,java.lang.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 java.util.Map<java.lang.String,java.lang.Integer> getFlushes()
CacheMonitorMBean
getFlushes
in interface CacheMonitorMBean
public java.util.Map<java.lang.String,java.lang.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 |