|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.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 |
---|
CACHE_MANAGER_CHANGED, 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. |
protected void |
doDispose()
Dispose callback of subclasses |
Object[][] |
executeQuery(String queryString)
Execute a BMSQL query against the CacheManager and return result grid. |
String |
generateActiveConfigDeclaration()
generateActiveConfigDeclaration |
String |
generateActiveConfigDeclaration(String cacheName)
generateActiveConfigDeclaration |
float |
getCacheAverageGetTime()
|
long |
getCacheAverageSearchTime()
|
long |
getCacheEvictionRate()
|
long |
getCacheExpirationRate()
|
long |
getCacheHitRate()
|
long |
getCacheInMemoryHitRate()
|
long |
getCacheInMemoryMissRate()
|
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 |
getCacheOffHeapHitRate()
|
long |
getCacheOffHeapMissRate()
|
long |
getCacheOnDiskHitRate()
|
long |
getCacheOnDiskMissRate()
|
long |
getCachePutRate()
|
long |
getCacheRemoveRate()
|
long |
getCacheSearchRate()
|
long |
getCacheUpdateRate()
|
String |
getClusterUUID()
Gets the cluster uuid if applicable. |
boolean |
getHasWriteBehindWriter()
Returns whether any caches are configured for write-behind |
long |
getMaxBytesLocalDisk()
Maximum number of bytes of entries in the disk stores of all caches that did not declare their own max size. |
String |
getMaxBytesLocalDiskAsString()
|
long |
getMaxBytesLocalHeap()
Maximum number of bytes of entries in the heap memory stores of all caches that did not declare their own max size. |
String |
getMaxBytesLocalHeapAsString()
|
long |
getMaxBytesLocalOffHeap()
Maximum number of bytes of entries in the off-heap stores of all caches that did not declare their own max size. |
String |
getMaxBytesLocalOffHeapAsString()
|
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. |
void |
setEnabled(boolean enabled)
Enables/disables each of the contained caches. |
void |
setMaxBytesLocalDisk(long maxBytes)
|
void |
setMaxBytesLocalDiskAsString(String maxBytes)
|
void |
setMaxBytesLocalHeap(long maxBytes)
|
void |
setMaxBytesLocalHeapAsString(String maxBytes)
|
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
- the cacheManager to wrap
NotCompliantMBeanException
- if invalid object is registeredMethod Detail |
---|
protected void doDispose()
doDispose
in class BaseEmitterBean
public void clearAll()
Ehcache.removeAll()
mehod on each cache is called.
clearAll
in interface CacheManagerSampler
public String[] getCacheNames() throws IllegalStateException
getCacheNames
in interface CacheManagerSampler
IllegalStateException
public String getStatus()
getStatus
in interface CacheManagerSampler
public void shutdown()
shutdown
in interface CacheManagerSampler
public Map<String,long[]> getCacheMetrics()
CacheManagerSampler
getCacheMetrics
in interface CacheManagerSampler
public long getCacheHitRate()
getCacheHitRate
in interface CacheManagerSampler
public long getCacheInMemoryHitRate()
getCacheInMemoryHitRate
in interface CacheManagerSampler
public long getCacheOffHeapHitRate()
getCacheOffHeapHitRate
in interface CacheManagerSampler
public long getCacheOnDiskHitRate()
getCacheOnDiskHitRate
in interface CacheManagerSampler
public long getCacheMissRate()
getCacheMissRate
in interface CacheManagerSampler
public long getCacheInMemoryMissRate()
getCacheInMemoryMissRate
in interface CacheManagerSampler
public long getCacheOffHeapMissRate()
getCacheOffHeapMissRate
in interface CacheManagerSampler
public long getCacheOnDiskMissRate()
getCacheOnDiskMissRate
in interface CacheManagerSampler
public long getCachePutRate()
getCachePutRate
in interface CacheManagerSampler
public long getCacheUpdateRate()
getCacheUpdateRate
in interface CacheManagerSampler
public long getCacheRemoveRate()
getCacheRemoveRate
in interface CacheManagerSampler
public long getCacheEvictionRate()
getCacheEvictionRate
in interface CacheManagerSampler
public long getCacheExpirationRate()
getCacheExpirationRate
in interface CacheManagerSampler
public float getCacheAverageGetTime()
getCacheAverageGetTime
in interface CacheManagerSampler
public long getCacheSearchRate()
getCacheSearchRate
in interface CacheManagerSampler
public long getCacheAverageSearchTime()
getCacheAverageSearchTime
in interface CacheManagerSampler
public boolean getHasWriteBehindWriter()
getHasWriteBehindWriter
in interface CacheManagerSampler
public long getWriterQueueLength()
CacheManagerSampler
getWriterQueueLength
in interface CacheManagerSampler
public int getWriterMaxQueueSize()
getWriterMaxQueueSize
in interface CacheManagerSampler
public long getMaxBytesLocalDisk()
getMaxBytesLocalDisk
in interface CacheManagerSampler
public String getMaxBytesLocalDiskAsString()
getMaxBytesLocalDiskAsString
in interface CacheManagerSampler
public void setMaxBytesLocalDisk(long maxBytes)
setMaxBytesLocalDisk
in interface CacheManagerSampler
public void setMaxBytesLocalDiskAsString(String maxBytes)
setMaxBytesLocalDiskAsString
in interface CacheManagerSampler
public long getMaxBytesLocalHeap()
getMaxBytesLocalHeap
in interface CacheManagerSampler
public String getMaxBytesLocalHeapAsString()
getMaxBytesLocalHeapAsString
in interface CacheManagerSampler
public void setMaxBytesLocalHeap(long maxBytes)
setMaxBytesLocalHeap
in interface CacheManagerSampler
public void setMaxBytesLocalHeapAsString(String maxBytes)
setMaxBytesLocalHeapAsString
in interface CacheManagerSampler
public long getMaxBytesLocalOffHeap()
getMaxBytesLocalOffHeap
in interface CacheManagerSampler
public String getMaxBytesLocalOffHeapAsString()
getMaxBytesLocalOffHeapAsString
in interface CacheManagerSampler
public String getName()
getName
in interface CacheManagerSampler
getName()
public String getClusterUUID()
CacheManagerSampler
getClusterUUID
in interface CacheManagerSampler
getClusterUUID()
public String getMBeanRegisteredName()
getMBeanRegisteredName
in interface SampledCacheManagerMBean
CacheManagerSampler.getName()
public String generateActiveConfigDeclaration()
generateActiveConfigDeclaration
in interface CacheManagerSampler
public String generateActiveConfigDeclaration(String cacheName)
generateActiveConfigDeclaration
in interface CacheManagerSampler
public boolean getTransactional()
getTransactional
in interface CacheManagerSampler
CacheConfiguration.TransactionalMode
public boolean getSearchable()
getSearchable
in interface CacheManagerSampler
public long getTransactionCommittedCount()
getTransactionCommittedCount
in interface CacheManagerSampler
public long getTransactionCommitRate()
getTransactionCommitRate
in interface CacheManagerSampler
public long getTransactionRolledBackCount()
getTransactionRolledBackCount
in interface CacheManagerSampler
public long getTransactionRollbackRate()
getTransactionRollbackRate
in interface CacheManagerSampler
public long getTransactionTimedOutCount()
getTransactionTimedOutCount
in interface CacheManagerSampler
public boolean isEnabled() throws CacheException
isEnabled
in interface CacheManagerSampler
CacheException
public void setEnabled(boolean enabled)
setEnabled
in interface CacheManagerSampler
public MBeanNotificationInfo[] getNotificationInfo()
getNotificationInfo
in interface NotificationBroadcaster
getNotificationInfo
in class BaseEmitterBean
BaseEmitterBean.getNotificationInfo()
public Object[][] executeQuery(String queryString)
CacheManagerSampler
executeQuery
in interface CacheManagerSampler
|
ehcache | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |