|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.sf.ehcache.management.Cache
public class Cache
A JMX MBean implementation for Cache
| Constructor Summary | |
|---|---|
Cache(Ehcache cache)
A constructor for JCache. |
|
| Method Summary | |
|---|---|
(package private) static javax.management.ObjectName |
createObjectName(java.lang.String cacheManagerName,
java.lang.String cacheName)
Creates an object name using the scheme "net.sf.ehcache:type=Cache,CacheManager= |
void |
flush()
Flushes all cache items from memory to the disk store, and from the DiskStore to disk. |
CacheConfiguration |
getCacheConfiguration()
Gets the JMX read-only CacheConfiguration |
java.lang.String |
getName()
Gets the cache name. |
(package private) javax.management.ObjectName |
getObjectName()
|
CacheStatistics |
getStatistics()
Gets the JMX cache statistics |
java.lang.String |
getStatus()
Gets the status attribute of the Cache. |
void |
removeAll()
Removes all cached items. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Cache(Ehcache cache)
throws CacheException
ConfigurationFactory and clients can create these.
A client can specify their own settings here and pass the Ehcache object
into CacheManager.addCache(java.lang.String) to specify parameters other than the defaults.
Only the CacheManager can initialise them.
cache - An ehcache
CacheException| Method Detail |
|---|
static javax.management.ObjectName createObjectName(java.lang.String cacheManagerName,
java.lang.String cacheName)
public void removeAll()
throws java.lang.IllegalStateException,
CacheException
removeAll in interface CacheMBeanjava.lang.IllegalStateException - if the cache is not Status.STATUS_ALIVE
CacheException
public void flush()
throws java.lang.IllegalStateException,
CacheException
flush in interface CacheMBeanjava.lang.IllegalStateException - if the cache is not Status.STATUS_ALIVE
CacheExceptionpublic java.lang.String getStatus()
getStatus in interface CacheMBeanpublic java.lang.String getName()
getName in interface CacheMBeanpublic CacheConfiguration getCacheConfiguration()
getCacheConfiguration in interface CacheMBeanpublic CacheStatistics getStatistics()
getStatistics in interface CacheMBeanjavax.management.ObjectName getObjectName()
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||