javax.cache.mbeans
Interface CacheMXBean

All Superinterfaces:
CacheStatistics, CacheStatisticsMXBean
All Known Implementing Classes:
CacheMXBeanImpl

@MXBean
public interface CacheMXBean
extends CacheStatisticsMXBean

A management bean for cache.

Each cache's statistics object must be registered with an ObjectName that is unique and has the following:

Type: javax.cache:type=CacheStatistics

Required Attributes:

Since:
1.0
Author:
Greg Luck, Yannis Cosmadopoulos

Method Summary
 String getName()
           
 Status getStatus()
          Gets the Status attribute of the Cache.
 
Methods inherited from interface javax.cache.CacheStatistics
clear, getAverageGetMillis, getAveragePutMillis, getAverageRemoveMillis, getCacheEvictions, getCacheGets, getCacheHitPercentage, getCacheHits, getCacheMisses, getCacheMissPercentage, getCachePuts, getCacheRemovals, getStartAccumulationDate
 

Method Detail

getName

String getName()
Returns:
the name of the Cache these statistics are for

getStatus

Status getStatus()
Gets the Status attribute of the Cache.

Returns:
The status value from the Status enum class


Copyright © 2014 WSO2 Inc. All rights reserved.