|
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 |
protected void |
doDispose()
Dispose callback of subclasses |
void |
enableStatistics()
Enable statistics for each cache contained by cacheManager |
String |
generateActiveConfigDeclaration()
generateActiveConfigDeclaration |
String |
generateActiveConfigDeclaration(String cacheName)
generateActiveConfigDeclaration |
long |
getCacheAverageSearchTime()
|
long |
getCacheEvictionRate()
|
long |
getCacheExpirationRate()
|
long |
getCacheHitRate()
|
Map<String,long[]> |
getCacheMetrics()
Get a map of cache name to performance metrics (hits, misses). |
long |
getCacheMissRate()
|
String[] |
getCacheNames()
Gets the cache names managed by the CacheManager |
long |
getCachePutRate()
|
long |
getCacheSearchRate()
|
long |
getCacheUpdateRate()
|
boolean |
getHasWriteBehindWriter()
Returns whether any caches are configured for write-behind |
String |
getMBeanRegisteredName()
Gets the name used to register this mbean. |
String |
getName()
Gets the actual name of the cache manager. |
MBeanNotificationInfo[] |
getNotificationInfo()
|
boolean |
getSearchable()
|
String |
getStatus()
Gets the status attribute of the Ehcache |
boolean |
getTransactional()
Are any of the caches transactional |
long |
getTransactionCommitRate()
|
long |
getTransactionCommittedCount()
Get the committed transactions count |
long |
getTransactionRollbackRate()
|
long |
getTransactionRolledBackCount()
Get the rolled back transactions count |
long |
getTransactionTimedOutCount()
Get the timed out transactions count. |
int |
getWriterMaxQueueSize()
Maximum elements that can be queued for processing by the write-behind writer |
long |
getWriterQueueLength()
Returns the total length of all write-behind queues across all caches |
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, dispose, 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 NotCompliantMBeanException
CacheManager
cacheManager -
NotCompliantMBeanException| Method Detail |
|---|
protected void doDispose()
doDispose in class BaseEmitterBeanpublic void clearAll()
Ehcache.removeAll() mehod on each cache is called.
clearAll in interface SampledCacheManagerMBean
public String[] getCacheNames()
throws IllegalStateException
getCacheNames in interface SampledCacheManagerMBeanIllegalStateExceptionpublic String getStatus()
getStatus in interface SampledCacheManagerMBeanpublic void shutdown()
shutdown in interface SampledCacheManagerMBeanpublic Map<String,long[]> getCacheMetrics()
SampledCacheManagerMBean
getCacheMetrics in interface SampledCacheManagerMBeanpublic long getCacheHitRate()
getCacheHitRate in interface SampledCacheManagerMBeanpublic long getCacheMissRate()
getCacheMissRate in interface SampledCacheManagerMBeanpublic long getCachePutRate()
getCachePutRate in interface SampledCacheManagerMBeanpublic long getCacheUpdateRate()
getCacheUpdateRate in interface SampledCacheManagerMBeanpublic long getCacheEvictionRate()
getCacheEvictionRate in interface SampledCacheManagerMBeanpublic long getCacheExpirationRate()
getCacheExpirationRate in interface SampledCacheManagerMBeanpublic long getCacheSearchRate()
getCacheSearchRate in interface SampledCacheManagerMBeanpublic long getCacheAverageSearchTime()
getCacheAverageSearchTime in interface SampledCacheManagerMBeanpublic boolean getHasWriteBehindWriter()
getHasWriteBehindWriter in interface SampledCacheManagerMBeanpublic long getWriterQueueLength()
SampledCacheManagerMBean
getWriterQueueLength in interface SampledCacheManagerMBeanpublic int getWriterMaxQueueSize()
getWriterMaxQueueSize in interface SampledCacheManagerMBeanpublic String getName()
getName in interface SampledCacheManagerMBeanSampledCacheManagerMBean.getName()public String getMBeanRegisteredName()
getMBeanRegisteredName in interface SampledCacheManagerMBeanSampledCacheManagerMBean.getName()public void clearStatistics()
clearStatistics in interface SampledCacheManagerMBeanpublic void enableStatistics()
enableStatistics in interface SampledCacheManagerMBeanpublic void disableStatistics()
disableStatistics in interface SampledCacheManagerMBeanpublic void setStatisticsEnabled(boolean enabled)
setStatisticsEnabled in interface SampledCacheManagerMBeanpublic boolean isStatisticsEnabled()
isStatisticsEnabled in interface SampledCacheManagerMBeanpublic String generateActiveConfigDeclaration()
generateActiveConfigDeclaration in interface SampledCacheManagerMBeanpublic String generateActiveConfigDeclaration(String cacheName)
generateActiveConfigDeclaration in interface SampledCacheManagerMBeanpublic boolean getTransactional()
getTransactional in interface SampledCacheManagerMBeanCacheConfiguration.TransactionalModepublic boolean getSearchable()
getSearchable in interface SampledCacheManagerMBeanpublic long getTransactionCommittedCount()
getTransactionCommittedCount in interface SampledCacheManagerMBeanpublic long getTransactionCommitRate()
getTransactionCommitRate in interface SampledCacheManagerMBeanpublic long getTransactionRolledBackCount()
getTransactionRolledBackCount in interface SampledCacheManagerMBeanpublic long getTransactionRollbackRate()
getTransactionRollbackRate in interface SampledCacheManagerMBeanpublic long getTransactionTimedOutCount()
getTransactionTimedOutCount in interface SampledCacheManagerMBean
public boolean isEnabled()
throws CacheException
isEnabled in interface SampledCacheManagerMBeanCacheExceptionpublic void setEnabled(boolean enabled)
setEnabled in interface SampledCacheManagerMBeanpublic MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo in interface NotificationBroadcastergetNotificationInfo in class BaseEmitterBeanBaseEmitterBean.getNotificationInfo()
|
ehcache | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||