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>
CacheStatisticsProviderimplementation 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 CacheStatisticsgetCacheStatistics(ObjectName objectName)Return the currentCacheStatisticssnapshot from the MBean identified by the specifiedObjectName.protected ObjectNamegetObjectName(org.infinispan.spring.provider.SpringCache cache)Return theObjectNameof the MBean that is managing the specified cache ornullif 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:AbstractJmxCacheStatisticsProviderReturn theObjectNameof the MBean that is managing the specified cache ornullif none is found.- Specified by:
getObjectNamein classAbstractJmxCacheStatisticsProvider<org.infinispan.spring.provider.SpringCache>- Parameters:
cache- the cache to handle- Returns:
- the object name of the cache statistics MBean
- Throws:
MalformedObjectNameException- if theObjectNamefor that cache is invalid
getCacheStatistics
protected CacheStatistics getCacheStatistics(ObjectName objectName)
Description copied from class:AbstractJmxCacheStatisticsProviderReturn the currentCacheStatisticssnapshot from the MBean identified by the specifiedObjectName.- Specified by:
getCacheStatisticsin classAbstractJmxCacheStatisticsProvider<org.infinispan.spring.provider.SpringCache>- Parameters:
objectName- the object name of the cache statistics MBean- Returns:
- the current cache statistics