public class JCacheCacheStatisticsProvider extends AbstractJmxCacheStatisticsProvider<org.springframework.cache.jcache.JCacheCache>
CacheStatisticsProvider
implementation for a JSR-107 compliant cache.Constructor and Description |
---|
JCacheCacheStatisticsProvider() |
Modifier and Type | Method and Description |
---|---|
protected CacheStatistics |
getCacheStatistics(ObjectName objectName)
Return the current
CacheStatistics snapshot from the MBean identified by
the specified ObjectName . |
protected ObjectName |
getObjectName(org.springframework.cache.jcache.JCacheCache cache)
Return the
ObjectName of the MBean that is managing the specified cache or
null if none is found. |
getAttribute, getCacheStatistics, getMBeanServer
protected ObjectName getObjectName(org.springframework.cache.jcache.JCacheCache cache) throws MalformedObjectNameException
AbstractJmxCacheStatisticsProvider
ObjectName
of the MBean that is managing the specified cache or
null
if none is found.getObjectName
in class AbstractJmxCacheStatisticsProvider<org.springframework.cache.jcache.JCacheCache>
cache
- the cache to handleMalformedObjectNameException
- if the ObjectName
for that cache is
invalidprotected CacheStatistics getCacheStatistics(ObjectName objectName)
AbstractJmxCacheStatisticsProvider
CacheStatistics
snapshot from the MBean identified by
the specified ObjectName
.getCacheStatistics
in class AbstractJmxCacheStatisticsProvider<org.springframework.cache.jcache.JCacheCache>
objectName
- the object name of the cache statistics MBeanCopyright © 2017 Pivotal Software, Inc.. All rights reserved.