Package net.sf.ehcache.management
Interface CacheMBean
-
- All Known Implementing Classes:
Cache
public interface CacheMBeanA management bean for a cache- Since:
- 1.3
- Version:
- $Id$
- Author:
- Greg Luck
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidflush()Flushes all cache items from memory to the disk store, and from the DiskStore to disk.CacheConfigurationgetCacheConfiguration()Gets the JMX read-only CacheConfigurationjava.lang.StringgetName()Gets the cache name.CacheStatisticsgetStatistics()Gets the JMX cache statisticsjava.lang.StringgetStatus()Gets the status attribute of the Cache.booleanhasAbortedSizeOf()Check if the cache may contain elements which the SizeOf engine could not fully size.booleanisTerracottaClustered()Uses a Terracotta clustered store.voidremoveAll()Removes all cached items.
-
-
-
Method Detail
-
removeAll
void removeAll() throws java.lang.IllegalStateException, CacheExceptionRemoves all cached items.- Throws:
java.lang.IllegalStateException- if the cache is notStatus.STATUS_ALIVECacheException
-
flush
void flush() throws java.lang.IllegalStateException, CacheExceptionFlushes all cache items from memory to the disk store, and from the DiskStore to disk.- Throws:
java.lang.IllegalStateException- if the cache is notStatus.STATUS_ALIVECacheException
-
getStatus
java.lang.String getStatus()
Gets the status attribute of the Cache.- Returns:
- The status value from the Status enum class
-
getName
java.lang.String getName()
Gets the cache name.
-
isTerracottaClustered
boolean isTerracottaClustered()
Uses a Terracotta clustered store.
-
hasAbortedSizeOf
boolean hasAbortedSizeOf()
Check if the cache may contain elements which the SizeOf engine could not fully size.
-
getCacheConfiguration
CacheConfiguration getCacheConfiguration()
Gets the JMX read-only CacheConfiguration
-
getStatistics
CacheStatistics getStatistics()
Gets the JMX cache statistics
-
-