public class CacheManager extends java.lang.Object implements CacheManagerMBean
Modifier and Type | Field and Description |
---|---|
private CacheManager |
cacheManager |
private javax.management.ObjectName |
objectName |
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.
|
(package private) static javax.management.ObjectName |
createObjectName(CacheManager cacheManager)
Creates an object name using the scheme "net.sf.ehcache:type=CacheManager,name=
|
Cache |
getCache(java.lang.String name)
Returns a JMX Cache bean
|
java.lang.String[] |
getCacheNames()
Gets the cache names managed by the CacheManager
|
java.util.List |
getCaches()
Gets a list of caches in this CacheManager
|
java.lang.String |
getName()
Gets the name of the CacheManager
|
(package private) javax.management.ObjectName |
getObjectName() |
java.lang.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.
|
private CacheManager cacheManager
private javax.management.ObjectName objectName
public CacheManager(CacheManager cacheManager) throws CacheException
cacheManager
- CacheException
static javax.management.ObjectName createObjectName(CacheManager cacheManager)
public java.lang.String getStatus()
getStatus
in interface CacheManagerMBean
public java.lang.String getName()
getName
in interface CacheManagerMBean
public void shutdown()
shutdown
in interface CacheManagerMBean
public void clearAll()
Ehcache.removeAll()
mehod on each cache is called.clearAll
in interface CacheManagerMBean
public Cache getCache(java.lang.String name)
getCache
in interface CacheManagerMBean
public java.lang.String[] getCacheNames() throws java.lang.IllegalStateException
getCacheNames
in interface CacheManagerMBean
java.lang.IllegalStateException
public java.util.List getCaches()
getCaches
in interface CacheManagerMBean
public long getTransactionCommittedCount()
getTransactionCommittedCount
in interface CacheManagerMBean
public long getTransactionRolledBackCount()
getTransactionRolledBackCount
in interface CacheManagerMBean
public long getTransactionTimedOutCount()
getTransactionTimedOutCount
in interface CacheManagerMBean
javax.management.ObjectName getObjectName()