Class InfinispanCacheStatisticsProvider
- java.lang.Object
- org.springframework.boot.actuate.cache.AbstractJmxCacheStatisticsProvider<org.infinispan.spring.provider.SpringCache>
- org.springframework.boot.actuate.cache.InfinispanCacheStatisticsProvider
- All Implemented Interfaces:
CacheStatisticsProvider<org.infinispan.spring.provider.SpringCache>
public class InfinispanCacheStatisticsProvider extends AbstractJmxCacheStatisticsProvider<org.infinispan.spring.provider.SpringCache>
CacheStatisticsProvider
implementation for Infinispan.- Since:
- 1.3.0
Constructor Summary
Constructors Constructor Description InfinispanCacheStatisticsProvider()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected CacheStatistics
getCacheStatistics(ObjectName objectName)
Return the currentCacheStatistics
snapshot from the MBean identified by the specifiedObjectName
.protected ObjectName
getObjectName(org.infinispan.spring.provider.SpringCache cache)
Return theObjectName
of the MBean that is managing the specified cache ornull
if none is found.Methods inherited from class org.springframework.boot.actuate.cache.AbstractJmxCacheStatisticsProvider
getAttribute, getCacheStatistics, getMBeanServer
Constructor Detail
InfinispanCacheStatisticsProvider
public InfinispanCacheStatisticsProvider()
Method Detail
getObjectName
protected ObjectName getObjectName(org.infinispan.spring.provider.SpringCache cache) throws MalformedObjectNameException
Description copied from class:AbstractJmxCacheStatisticsProvider
Return theObjectName
of the MBean that is managing the specified cache ornull
if none is found.- Specified by:
getObjectName
in classAbstractJmxCacheStatisticsProvider<org.infinispan.spring.provider.SpringCache>
- Parameters:
cache
- the cache to handle- Returns:
- the object name of the cache statistics MBean
- Throws:
MalformedObjectNameException
- if theObjectName
for that cache is invalid
getCacheStatistics
protected CacheStatistics getCacheStatistics(ObjectName objectName)
Description copied from class:AbstractJmxCacheStatisticsProvider
Return the currentCacheStatistics
snapshot from the MBean identified by the specifiedObjectName
.- Specified by:
getCacheStatistics
in classAbstractJmxCacheStatisticsProvider<org.infinispan.spring.provider.SpringCache>
- Parameters:
objectName
- the object name of the cache statistics MBean- Returns:
- the current cache statistics