|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.management.StandardMBean
net.sf.ehcache.hibernate.management.impl.BaseEmitterBean
net.sf.ehcache.management.sampled.SampledCacheManager
public class SampledCacheManager
An implementation of SampledCacheManagerMBean
Field Summary |
---|
Fields inherited from class net.sf.ehcache.hibernate.management.impl.BaseEmitterBean |
---|
emitter, sequenceNumber |
Fields inherited from interface net.sf.ehcache.management.sampled.SampledCacheManagerMBean |
---|
CACHES_CLEARED, CACHES_ENABLED, STATISTICS_ENABLED, STATISTICS_RESET |
Constructor Summary | |
---|---|
SampledCacheManager(CacheManager cacheManager)
Constructor taking the backing CacheManager |
Method Summary | |
---|---|
void |
clearAll()
Clears the contents of all caches in the CacheManager, but without removing any caches. |
void |
clearStatistics()
Clears statistics of all caches for the associated cacheManager |
void |
disableStatistics()
Disable statistics for each cache contained by cacheManager |
void |
enableStatistics()
Enable statistics for each cache contained by cacheManager |
java.lang.String |
generateActiveConfigDeclaration()
generateActiveConfigDeclaration |
java.lang.String |
generateActiveConfigDeclaration(java.lang.String cacheName)
generateActiveConfigDeclaration |
long |
getCacheEvictionRate()
|
long |
getCacheExpirationRate()
|
long |
getCacheHitRate()
|
java.util.Map<java.lang.String,long[]> |
getCacheMetrics()
Get a map of cache name to performance metrics (hits, misses). |
long |
getCacheMissRate()
|
java.lang.String[] |
getCacheNames()
Gets the cache names managed by the CacheManager |
long |
getCachePutRate()
|
long |
getCacheUpdateRate()
|
java.lang.String |
getMBeanRegisteredName()
Gets the name used to register this mbean. |
java.lang.String |
getName()
Gets the actual name of the cache manager. |
javax.management.MBeanNotificationInfo[] |
getNotificationInfo()
|
java.lang.String |
getStatus()
Gets the status attribute of the Ehcache |
boolean |
isEnabled()
Returns if each contained cache is enabled. |
boolean |
isStatisticsEnabled()
Returns true iff each contained cache has statistics enabled |
void |
setEnabled(boolean enabled)
Enables/disables each of the contained caches. |
void |
setStatisticsEnabled(boolean enabled)
Enables/disables each contained cache |
void |
shutdown()
Shuts down the CacheManager. |
Methods inherited from class net.sf.ehcache.hibernate.management.impl.BaseEmitterBean |
---|
addNotificationListener, removeNotificationListener, removeNotificationListener, sendNotification, sendNotification, sendNotification |
Methods inherited from class javax.management.StandardMBean |
---|
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SampledCacheManager(CacheManager cacheManager) throws javax.management.NotCompliantMBeanException
CacheManager
cacheManager
-
javax.management.NotCompliantMBeanException
Method Detail |
---|
public void clearAll()
Ehcache.removeAll()
mehod on each cache is called.
clearAll
in interface SampledCacheManagerMBean
public java.lang.String[] getCacheNames() throws java.lang.IllegalStateException
getCacheNames
in interface SampledCacheManagerMBean
java.lang.IllegalStateException
public java.lang.String getStatus()
getStatus
in interface SampledCacheManagerMBean
public void shutdown()
shutdown
in interface SampledCacheManagerMBean
public java.util.Map<java.lang.String,long[]> getCacheMetrics()
SampledCacheManagerMBean
getCacheMetrics
in interface SampledCacheManagerMBean
public long getCacheHitRate()
getCacheHitRate
in interface SampledCacheManagerMBean
public long getCacheMissRate()
getCacheMissRate
in interface SampledCacheManagerMBean
public long getCachePutRate()
getCachePutRate
in interface SampledCacheManagerMBean
public long getCacheUpdateRate()
getCacheUpdateRate
in interface SampledCacheManagerMBean
public long getCacheEvictionRate()
getCacheEvictionRate
in interface SampledCacheManagerMBean
public long getCacheExpirationRate()
getCacheExpirationRate
in interface SampledCacheManagerMBean
public java.lang.String getName()
getName
in interface SampledCacheManagerMBean
SampledCacheManagerMBean.getName()
public java.lang.String getMBeanRegisteredName()
getMBeanRegisteredName
in interface SampledCacheManagerMBean
SampledCacheManagerMBean.getName()
public void clearStatistics()
clearStatistics
in interface SampledCacheManagerMBean
public void enableStatistics()
enableStatistics
in interface SampledCacheManagerMBean
public void disableStatistics()
disableStatistics
in interface SampledCacheManagerMBean
public void setStatisticsEnabled(boolean enabled)
setStatisticsEnabled
in interface SampledCacheManagerMBean
public boolean isStatisticsEnabled()
isStatisticsEnabled
in interface SampledCacheManagerMBean
public java.lang.String generateActiveConfigDeclaration()
generateActiveConfigDeclaration
in interface SampledCacheManagerMBean
public java.lang.String generateActiveConfigDeclaration(java.lang.String cacheName)
generateActiveConfigDeclaration
in interface SampledCacheManagerMBean
public boolean isEnabled() throws CacheException
isEnabled
in interface SampledCacheManagerMBean
CacheException
public void setEnabled(boolean enabled)
setEnabled
in interface SampledCacheManagerMBean
public javax.management.MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface javax.management.NotificationBroadcaster
getNotificationInfo
in class BaseEmitterBean
BaseEmitterBean.getNotificationInfo()
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |