Package net.sf.ehcache.management
Interface CacheManagerMBean
-
- All Known Implementing Classes:
CacheManager
public interface CacheManagerMBeanAn MBean interface for those attributes and operations we wish to expose on net.sf.ehcache.CacheManager- Since:
- 1.3
- Version:
- $Id$
- Author:
- Greg Luck
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidclearAll()Clears the contents of all caches in the CacheManager, but without removing any caches.CachegetCache(java.lang.String name)Returns a JMX Cache beanjava.lang.String[]getCacheNames()Gets the cache names managed by the CacheManagerjava.util.ListgetCaches()Gets a list of caches in this CacheManagerjava.lang.StringgetName()Gets the name of the cache managerjava.lang.StringgetStatus()Gets the status attribute of the EhcachelonggetTransactionCommittedCount()Get the committed transactions countlonggetTransactionRolledBackCount()Get the rolled back transactions countlonggetTransactionTimedOutCount()Get the timed out transactions count.voidshutdown()Shuts down the CacheManager.
-
-
-
Method Detail
-
getStatus
java.lang.String getStatus()
Gets the status attribute of the Ehcache- Returns:
- The status value, as a String from the Status enum class
-
getName
java.lang.String getName()
Gets the name of the cache manager- Returns:
- The name of the CacheManager
-
shutdown
void shutdown()
Shuts down the CacheManager.If the shutdown occurs on the singleton, then the singleton is removed, so that if a singleton access method is called, a new singleton will be created.
-
clearAll
void clearAll()
Clears the contents of all caches in the CacheManager, but without removing any caches.This method is not synchronized. It only guarantees to clear those elements in a cache at the time that the
Ehcache.removeAll()mehod on each cache is called.
-
getCache
Cache getCache(java.lang.String name)
Returns a JMX Cache bean
-
getCacheNames
java.lang.String[] getCacheNames() throws java.lang.IllegalStateExceptionGets the cache names managed by the CacheManager- Throws:
java.lang.IllegalStateException
-
getCaches
java.util.List getCaches()
Gets a list of caches in this CacheManager- Returns:
- a list of JMX Cache objects
-
getTransactionCommittedCount
long getTransactionCommittedCount()
Get the committed transactions count- Returns:
- the committed transactions count
-
getTransactionRolledBackCount
long getTransactionRolledBackCount()
Get the rolled back transactions count- Returns:
- the rolled back transactions count
-
getTransactionTimedOutCount
long getTransactionTimedOutCount()
Get the timed out transactions count. Note that only transactions which failed to commit due to a timeout are taken into account- Returns:
- the timed out transactions count
-
-