Class JMXCacheManager
java.lang.Object
org.deltava.util.jmx.JMXCacheManager
- All Implemented Interfaces:
CacheManagerMXBean, JMXRefresh
A JMX bean to export Cache Manager statistics.
- Since:
- 10.2
- Version:
- 12.1
- Author:
- Luke
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns a collection of cache information.getCode()Returns the connection pool code.getHits()Recent cache hit count.Recent cache miss count.getRatio()Returns the cache hit ratio.Recent cache request count.The last update time.toString()voidupdate()Updates the JMX statistics.
-
Constructor Details
-
JMXCacheManager
-
-
Method Details
-
getCode
Description copied from interface:CacheManagerMXBeanReturns the connection pool code.- Specified by:
getCodein interfaceCacheManagerMXBean- Returns:
- the code
-
getHits
Description copied from interface:CacheManagerMXBeanRecent cache hit count.- Specified by:
getHitsin interfaceCacheManagerMXBean- Returns:
- the number of cache hits since the last refresh
-
getRequests
Description copied from interface:CacheManagerMXBeanRecent cache request count.- Specified by:
getRequestsin interfaceCacheManagerMXBean- Returns:
- the number of cache requests since the last refresh
-
getMisses
Description copied from interface:CacheManagerMXBeanRecent cache miss count.- Specified by:
getMissesin interfaceCacheManagerMXBean- Returns:
- the number of cache misses since the last refresh
-
getRatio
Description copied from interface:CacheManagerMXBeanReturns the cache hit ratio.- Specified by:
getRatioin interfaceCacheManagerMXBean- Returns:
- the cache hit percentage
-
getCacheInfo
Description copied from interface:CacheManagerMXBeanReturns a collection of cache information.- Specified by:
getCacheInfoin interfaceCacheManagerMXBean- Returns:
- a Collection of CacheMBeans
-
getUpdateTime
Description copied from interface:CacheManagerMXBeanThe last update time.- Specified by:
getUpdateTimein interfaceCacheManagerMXBean- Returns:
- the update date/time
-
update
public void update()Description copied from interface:JMXRefreshUpdates the JMX statistics.- Specified by:
updatein interfaceJMXRefresh
-
toString
-