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:
- 10.4
- Author:
- Luke
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
JMXCacheManager
-
-
Method Details
-
getHits
Description copied from interface:CacheManagerMXBean
Recent cache hit count.- Specified by:
getHits
in interfaceCacheManagerMXBean
- Returns:
- the number of cache hits since the last refresh
-
getRequests
Description copied from interface:CacheManagerMXBean
Recent cache request count.- Specified by:
getRequests
in interfaceCacheManagerMXBean
- Returns:
- the number of cache requests since the last refresh
-
getMisses
Description copied from interface:CacheManagerMXBean
Recent cache miss count.- Specified by:
getMisses
in interfaceCacheManagerMXBean
- Returns:
- the number of cache misses since the last refresh
-
getRatio
Description copied from interface:CacheManagerMXBean
Returns the cache hit ratio.- Specified by:
getRatio
in interfaceCacheManagerMXBean
- Returns:
- the cache hit percentage
-
getCacheInfo
Description copied from interface:CacheManagerMXBean
Returns a collection of cache information.- Specified by:
getCacheInfo
in interfaceCacheManagerMXBean
- Returns:
- a Collection of CacheMBeans
-
getUpdateTime
Description copied from interface:CacheManagerMXBean
The last update time.- Specified by:
getUpdateTime
in interfaceCacheManagerMXBean
- Returns:
- the update date/time
-
update
public void update()Description copied from interface:JMXRefresh
Updates the JMX statistics.- Specified by:
update
in interfaceJMXRefresh
-
toString
-