public class CacheManager extends Object implements CacheManagerMBean
| Constructor and Description |
|---|
CacheManager(CacheManager cacheManager)
Create a management CacheManager
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearAll()
Clears the contents of all caches in the CacheManager, but without
removing any caches.
|
Cache |
getCache(String name)
Returns a JMX Cache bean
|
String[] |
getCacheNames()
Gets the cache names managed by the CacheManager
|
List |
getCaches()
Gets a list of caches in this CacheManager
|
String |
getName()
Gets the name of the CacheManager
|
String |
getStatus()
Gets the status attribute of the Ehcache
|
long |
getTransactionCommittedCount()
Get the committed transactions count
|
long |
getTransactionRolledBackCount()
Get the rolled back transactions count
|
long |
getTransactionTimedOutCount()
Get the timed out transactions count.
|
void |
shutdown()
Shuts down the CacheManager.
|
public CacheManager(CacheManager cacheManager) throws CacheException
cacheManager - CacheExceptionpublic String getStatus()
getStatus in interface CacheManagerMBeanpublic String getName()
getName in interface CacheManagerMBeanpublic void shutdown()
shutdown in interface CacheManagerMBeanpublic void clearAll()
Ehcache.removeAll() mehod on each cache is called.clearAll in interface CacheManagerMBeanpublic Cache getCache(String name)
getCache in interface CacheManagerMBeanpublic String[] getCacheNames() throws IllegalStateException
getCacheNames in interface CacheManagerMBeanIllegalStateExceptionpublic List getCaches()
getCaches in interface CacheManagerMBeanpublic long getTransactionCommittedCount()
getTransactionCommittedCount in interface CacheManagerMBeanpublic long getTransactionRolledBackCount()
getTransactionRolledBackCount in interface CacheManagerMBeanpublic long getTransactionTimedOutCount()
getTransactionTimedOutCount in interface CacheManagerMBeanCopyright © 2003-2014 Terracotta, Inc.. All Rights Reserved.