|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.ehcache.management.CacheManager
public class CacheManager
An MBean implementation for those attributes and operations we wish to expose on net.sf.ehcache.CacheManager. This class is not Serializable because it is an adapter around a net.sf.ehcache.CacheManager, which is itself not Serializable.
Constructor Summary | |
---|---|
CacheManager(CacheManager cacheManager)
Create a management CacheManager |
Method Summary | |
---|---|
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 |
(package private) javax.management.ObjectName |
getObjectName()
|
java.lang.String |
getStatus()
Gets the status attribute of the Ehcache |
void |
shutdown()
Shuts down the CacheManager. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CacheManager(CacheManager cacheManager) throws CacheException
cacheManager
-
CacheException
Method Detail |
---|
static javax.management.ObjectName createObjectName(CacheManager cacheManager)
public java.lang.String getStatus()
getStatus
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
javax.management.ObjectName getObjectName()
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |